View topic - Changing command ??



All times are UTC + 1 hour


Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Changing command ??
PostPosted: 29 Jun 2011, 18:51 

Joined: 29 Jun 2011, 18:31
Alright sorry if its not the correct section to talk about it.
I'm trying to make my little brother(mid school) interested in game developing and find spring to be a good start (though he like FPS game better than RTS).
I wanted to try to show him some simple things such as changing the command attack to "serang" -> indonesian for attack(I'm indonesian). But i can seem to find the parameter to change. I look in the game folder(gamedata, LuaUI etc) & Spring folder. The closest thing i found is spring.h.lua.
So is it possible to change the command in game to different words?
If so which file or what method that I must do?
Btw I use xta as the base game.


Top
 Offline Profile  
 
 Post subject: Re: Changing command ??
PostPosted: 29 Jun 2011, 18:56 
Server Owner & Developer
User avatar

Joined: 19 May 2006, 18:13
Location: Brno, Czech rep., EU, Terra, Sol, Orion arm, Milky way, Virgo supercluster
You should pick a different goal, renaming engine command "attack" is hard. You would need to code command handler in lua.


Top
 Offline Profile  
 
 Post subject: Re: Changing command ??
PostPosted: 29 Jun 2011, 23:12 

Joined: 29 Jun 2011, 18:31
Hmmm i see, well no problem , I can use other things such as unit making & etc.
But is it really hard to rename the command? How to do it actually? Because most of young people here is really ignorant with their english.
Another thing,what AI is easiest to configure for new programmer in your opinion? (actually i'm a web programmer so this kind of thing isn't really my forte).


Top
 Offline Profile  
 
 Post subject: Re: Changing command ??
PostPosted: 29 Jun 2011, 23:49 
Moderator
User avatar

Joined: 29 Apr 2005, 00:14
Location: #moddev - join it!
If you just want to change the text on the button, that is easy:

http://spring1944.svn.sourceforge.net/v ... iew=markup

Line 35 changes 'Reclaim' to 'Salvage', a similar change for Attack is just as trivial.


Top
 Offline Profile  
 
 Post subject: Re: Changing command ??
PostPosted: 29 Jun 2011, 23:49 
AI Coder
User avatar

Joined: 14 Sep 2004, 10:32
Location: Cookieland
If you're using XTA as the basegame, you can use Shard, you can modify the entire AI if you wish, but since you're a beginner, taskqueues.lua should do the trick, its a simple data structure that defines what the AI should build, listed in order from start to finish.


Top
 Offline Profile  
 
 Post subject: Re: Changing command ??
PostPosted: 30 Jun 2011, 16:51 

Joined: 29 Jun 2011, 18:31
Thanks for the tip to change the text & also AI gonna try the taskqueues


Top
 Offline Profile  
 
 Post subject: Re: Changing command ??
PostPosted: 30 Jun 2011, 17:15 
AI Coder
User avatar

Joined: 14 Sep 2004, 10:32
Location: Cookieland
If you have questions or suggestions about it let me know


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: knorke and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.