Loading...
  OR  Zero-K Name:    Password:   

Dunno what happened

5 posts, 880 views
Post comment
Filter:    Player:  
sort
11 years ago
Mah friend opened 0k yesterday and was not able to play. Today he completely removed it and downloaded it (maybe corrupted files), but didn`t help. So I wonder if 0k has any dependencies maybe he needs to reinstall some maybe they`re corrupted. Here`s the log:

31. 10. 2013 17:29:01: System.ArgumentNullException: Array cannot be null.
Parameter name: bytes
at System.Text.Encoding.GetString(Byte[] bytes)
at ZeroKLobby.EngineConfigurator.ReadResourceString(String uri)
31. 10. 2013 17:29:01: Failed to load resource uikeys0 :System.ArgumentNullException: Array cannot be null.
Parameter name: bytes
at System.Text.Encoding.GetString(Byte[] bytes)
at ZeroKLobby.EngineConfigurator.ReadResourceString(String uri)
31. 10. 2013 17:29:01: System.ArgumentNullException: Array cannot be null.
Parameter name: bytes
at System.Text.Encoding.GetString(Byte[] bytes)
at ZeroKLobby.EngineConfigurator.ReadResourceString(String uri)
31. 10. 2013 17:29:01: Failed to load resource selectkeys0 :System.ArgumentNullException: Array cannot be null.
Parameter name: bytes
at System.Text.Encoding.GetString(Byte[] bytes)
at ZeroKLobby.EngineConfigurator.ReadResourceString(String uri)


Please help me helping him :D Thanks
+0 / -0
11 years ago
The error he`s gettin` is number 126
+0 / -0
.... hmm, the "error code" thing is just as useless to a coder as it is to you, but the stacktrace helps. I haven't dug into the ZKLobby code, but it looks like it can't find the engine uikeys and selectionkeys files. That's odd since that should've already been all set up for him. Files have moved around a bit so I don't know where those would be, or what the search path logic is for uikeys.txt...

My first instinct is to look on your machine for where uikeys.txt and selectionkeys live, and see if they exist in teh same place on his machine. iirc, ZK doesn't actually use those binding files anyways since it has its own separate binding system.

It could be an installer bug, or maybe his machine's security profile is weird and somehow those files aren't being found or created right.
+0 / -0
11 years ago
thank you pxtl, will i`ve already tried it, also i sent him ones of mine, but we were looking at the ones zero-k created, we will have a look at those in spring engine ...
+0 / -0
I took a look at the .cs files, but you're going to need Licho to properly figure this out. Looking at the history it used to make sense when it would pull the uikeys and selectionkeys from a Resources/Conf folder, but now it still keeps them in a config folder without expressedly providing that path in the loader... I no longer have any clue how this works.

I'm not sure if the Spring Engine generates a uikeys.txt if there isn't one already. Just in case, try running the Spring.exe in your engines folder, then see if ZKLobby worse from there.
+0 / -0