Page 1 of 2

Minimalistic Development Shard

PostPosted: Wed Aug 03, 2011 1:55 pm
by diafero
A tutorial for a Minimalistic Development Shard is now available in the GoW wiki. It is mainly aimed at age developers that want to test their ages in MOULa, as well as developers of the server and client software itself. It creates a Shard with no dataserver protection so that the client can be modified as will - the server still needs all age and SDL files though, due to the way Uru works.

Currently the result is exactly like MOULa, plus some Python fixes. Specifically, it does not contain a command to actually link to an age you added, but if an age developer says he's at a stage where he needs that I can easily write such a command :)

Please tell me if you got trouble with the tutorial. I am still working on patches to make some steps easier, but the current versions of client and server should work with the current instructions.

Re: Minimalistic Development Shard

PostPosted: Wed Aug 03, 2011 3:23 pm
by Tsar Hoikas
There already is a command. Press ` to open the console, then type Net.LinkWithOwnedBook <ageName>

Re: Minimalistic Development Shard

PostPosted: Thu Aug 04, 2011 4:11 am
by diafero
Oh, there's an in-game console interface? Good to know^^
I Just hope that weird key is processed correctly through wine. I'll test when the build is finished (why does it have to rebuild everything if a comment in some CMake file changed?? It's not doing that when I do a makefile-based build...)

EDIT: Nah, not working. Both ` ´ and ' open the chat line.

Re: Minimalistic Development Shard

PostPosted: Thu Aug 04, 2011 4:37 am
by Mystler
On the german keyboard it's the "ö"-key. ;)

EDIT: Btw, you can use the command "Console.CreateBriefDocumentation doc.html" to create a command list html in your URU dir.

Re: Minimalistic Development Shard

PostPosted: Thu Aug 04, 2011 4:44 am
by diafero
That's not working either... wine does some translation of keys I think, obviously in a way that Uru does not like. Hrmpf.
Now I'm sure there's some console command that I can include in some ini file to change this key. I'm looking for that now.

Re: Minimalistic Development Shard

PostPosted: Thu Aug 04, 2011 5:00 am
by Mystler
Hmm, maybe you'll need one of those:

Code: Select all
Keyboard.BindConsoleCmd string key, string command - Bind console command to key
Keyboard.BindAction string key1, string key2, string action - Binds the given two keys to the given action (you can specify 'UNDEFINED' for either key if you wish)
Keyboard.BindKey string key1, string action - Binds the given single key combo to the given action
Keyboard.ClearBindings - Resets the keyboard bindings to empty
Keyboard.ResetBindings - Resets the keyboard bindings to their defaults

Re: Minimalistic Development Shard

PostPosted: Thu Aug 04, 2011 5:19 am
by diafero
Yeah, and the binding name for the console key is "Console" (surprise!). Now I just have to find out where Uru stores the key bindings.

Re: Minimalistic Development Shard

PostPosted: Thu Aug 04, 2011 5:53 am
by Tsar Hoikas
Looks like there's STILL a lot of work to do WRT key presses :(. Anyway, "`" is a fairly standard key to open developer consoles in my experience--all of Valve's games work that way as well.

Re: Minimalistic Development Shard

PostPosted: Thu Aug 04, 2011 6:06 am
by diafero
I know, and I changed it for all of them because its a horrible key on non-English keyboards ;-)

Re: Minimalistic Development Shard

PostPosted: Thu Aug 04, 2011 6:35 am
by diafero
I added a file called "keys.ini" to the "Application Data\Uru Live\Init" folder, with a single line
Code: Select all
Keyboard.BindKey F12 Console

But that does not look like it works. I also could not find the file where Uru stores the key bindings I changed in-game (I added WASD), so I assume they are somehow stored in the server. And the keymap is reset on login. And of course the configuration dialogue does not show the Console key selection.