Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help and Tips #52

Open
XenoForce opened this issue Aug 7, 2023 · 1 comment
Open

Help and Tips #52

XenoForce opened this issue Aug 7, 2023 · 1 comment

Comments

@XenoForce
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant