Change the values ​​of the units

Change the values ​​of the units

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Post Reply
TotalAnnihilation
Posts: 19
Joined: 18 Mar 2012, 16:48

Change the values ​​of the units

Post 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!
User avatar
FireStorm_
Posts: 666
Joined: 19 Aug 2009, 16:09

Re: Change the values ​​of the units

Post by FireStorm_ »

hello,

I am letting you know. :-)
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?
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Change the values ​​of the units

Post 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.
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: Change the values ​​of the units

Post 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
TotalAnnihilation
Posts: 19
Joined: 18 Mar 2012, 16:48

Re: Change the values ​​of the units

Post by TotalAnnihilation »

Ok, thanks!

I try and then I'll know!

I just want to try eninete more.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Re: Change the values ​​of the units

Post 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
TotalAnnihilation
Posts: 19
Joined: 18 Mar 2012, 16:48

Re: Change the values ​​of the units

Post 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".
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Re: Change the values ​​of the units

Post by FLOZi »

Some weapons remain as tdfs, but most (all non-tank weapons) are now lua
TotalAnnihilation
Posts: 19
Joined: 18 Mar 2012, 16:48

Re: Change the values ​​of the units

Post by TotalAnnihilation »

Ok, FLOZi!

Thank you!

Can you tell me if the radius of the mod is in meters?
Post Reply

Return to “General Discussion”