Diamond-Ore icon indicating copy to clipboard operation
Diamond-Ore copied to clipboard

Help and Tips

Open XenoForce opened this issue 1 year ago • 1 comments

I want to give you some help, in order to make your life a little bit easier.

Some of the units in the mod are still programmed against the old game API.

To fix some of these units:

*) Remove field "commandLimit".

*) Replace "legTrns" with "legForwardScl".

*) Replace "visualElevation" with "shadowElevation".

*) Replace "maxStretch" with "legMaxLength". ...(For "legs" units.)

*) Replace "rotateShooting" with "faceTarget".

*) Replace "tileDamageMultiplier" with "buildingDamageMultiplier".

*) Replace "shots" with "shoot.shots".

*) Remove: "scaleVelocity"

*) Change: lightColor: "a2f32d", To: lightColor = Color.valueOf("a2f32d"); ...(if you do it in Java.)

NOTES:

I like the Gnome, Pixie, Nymph and Goblin units.

I have tried to convert these units to Java, in a Java mod, and I have had some success. It is not perfect, but you can have a quick look here:

https://github.com/XenoForce/Critter-Zone/tree/main/src/mod/units/diamond/gnome

https://github.com/XenoForce/Critter-Zone/tree/main/src/mod/units/diamond/pixie

https://github.com/XenoForce/Critter-Zone/tree/main/src/mod/units/diamond/nymph

https://github.com/XenoForce/Critter-Zone/tree/main/src/mod/units/diamond/goblin

I hope some of this helps. Cheers.

XenoForce avatar Aug 07 '23 09:08 XenoForce

Other fixes that you may possibly need:

reloadTime --> reload recoilAmount --> recoil shootShake --> shake

mechStepShake --> stepShake landShake --> stepShake

"chargeTime" --> shoot.firstShotDelay

"coolantUsage" and "powerUse" are gone. Replace with the "consume" structure.

Just in case any of this can help you. Cheers.

XenoForce avatar Aug 07 '23 10:08 XenoForce