Page 1 of 1
					
				Change the values of the units
				Posted: 18 Mar 2012, 17:07
				by TotalAnnihilation
				Hi!
I'm new to the forum.
Let me know if you can change the values (range, cost, speed, experience, power of the shot, etc. ...) of the units of a mod (eg Spring 1944)?
Need a program?
Let me know!
Thank you!
			 
			
					
				Re: Change the values of the units
				Posted: 18 Mar 2012, 17:45
				by FireStorm_
				hello,
I am letting you know. 
 http://springrts.com/wiki/Units-UnitDefs
 
http://springrts.com/wiki/Units-UnitDefs
Any text editor will do (I prefer LuaEdit myself)
I am wondering, out of curiosity, why would you want to do this?
 
			
					
				Re: Change the values of the units
				Posted: 18 Mar 2012, 17:50
				by zwzsg
				Use 
7-zip to unpack .sdz and .sd7.
Rename the folder you unpacked the mod into /whatever
.sdd/
First thing, open modinfo.lua with any text editor and modify the version field, so as to avoid confusion.
Open the files in /units/ with any text editor and modify the values.
Do NOT upload unless you have checked whether it's ok with the mod authors.
Note: If you have gotten your mod from rapid or similar, I have no idea how to remake mod archive from file dust.
 
			
					
				Re: Change the values of the units
				Posted: 18 Mar 2012, 17:52
				by gajop
				zwzsg wrote:
Note: If you have gotten your mod from rapid or similar, I have no idea how to remake mod archive from file dust.
rapid --help would be a good start
there's a command that makes an archive again, something like:
rapid --repack, --create-sdz, etc, don't remember it really
 
			
					
				Re: Change the values of the units
				Posted: 18 Mar 2012, 18:29
				by TotalAnnihilation
				Ok, thanks!
I try and then I'll know!
I just want to try eninete more.
			 
			
					
				Re: Change the values of the units
				Posted: 18 Mar 2012, 18:52
				by FLOZi
				Some of those values e.g. range, power of shot etc. are actually weapon attributes not unit attributes. S44's weapons have a (afaik) unique OO-style definition but the tags remain the same; the wiki article on wepaon tags isn't as up to date though: 
http://springrts.com/wiki/Weapon_Variables 
			
					
				Re: Change the values of the units
				Posted: 18 Mar 2012, 19:36
				by TotalAnnihilation
				FLOZi wrote:Some of those values e.g. range, power of shot etc. are actually weapon attributes not unit attributes. S44's weapons have a (afaik) unique OO-style definition but the tags remain the same; the wiki article on wepaon tags isn't as up to date though: 
http://springrts.com/wiki/Weapon_Variables 
In fact I could not find unity in the values of the weapon.
The values of the weapon is in the files. Tdf inside the folder "weapons".
 
			
					
				Re: Change the values of the units
				Posted: 18 Mar 2012, 20:47
				by FLOZi
				Some weapons remain as tdfs, but most (all non-tank weapons) are now lua
			 
			
					
				Re: Change the values of the units
				Posted: 18 Mar 2012, 21:46
				by TotalAnnihilation
				Ok, FLOZi!
Thank you!
Can you tell me if the radius of the mod is in meters?