Page 1 of 1

Jets and Weapons: How to Modify?

Posted: Tue Nov 01, 2016 7:32 pm
by Ascertes
Greetings fellow GameToasters! Today I bring to you an issue that has been continuing to plague me for my upcoming space map.

First off, I'm having issues modifying the jetpack. I've copied this chunk of code out of the standard Jet Trooper ODF and put it in for my new units:

Code: Select all

ControlSpeed        = "jet    1.50 1.25 1.25"

JetJump             = "5.0" //7 //The initial jump-push given when enabling the jet
JetPush             = "8.0" //The constant push given while the jet is enabled (20 is gravity)
JetAcceleration     = "30.0" //Acceleration while hovering.
JetEffect           = "rep_sfx_jetpack"
JetType             = "hover"
JetFuelRechargeRate = "0.12" //Additional fuel per second (fuel is 0 to 1)
JetFuelCost         = "0.16" //Cost per second when hovering (only used for jet-hovers)(fuel is 0 to 1)
JetFuelInitialCost  = "0.25" //initial cost when jet jumping(fuel is 0 to 1)
JetFuelMinBorder    = "0.24" //minimum fuel to perform a jet jump(fuel is 0 to 1)
Of these variables, I've been having problems with JetPush and JetAcceleration. It's as if these values do nothing, no matter how much I change them (I bumped each of them up to *320* and found no change.) The other variables work fine. Does anyone know how to change the functionality of the jetpack?

__________

For my second issue, I've been trying to figure out how to modify stock weapons for my new units. I think the problem is that for the hierarchy they all lead to files in the Common side folder. However, when I edit these files, no changes appear in game. I guess I'm just looking for a little help on how to modify stock weapons.

Re: Jets and Weapons: How to Modify?

Posted: Wed Nov 02, 2016 2:57 pm
by Samee3
If I remember right, JetPush and JetAcceleration only apply to jump style jetpacks.

As for your second issue, you were rather vague on the details, and I'm not entirely sure what you are asking. You wouldn't mind elaborating a bit, would you?
Hidden/Spoiler:
Examine the process; see if you missed anything. Then tell us which part you are having issues with.
[list=1]
[*]Find file/value you wish to modify
[*]Save file
[*]Munge affected side (not common)
[*]Make sure the game is reading the modified file[/list]

Pardon me if I went into slightly unnecessary detail.

Re: Jets and Weapons: How to Modify?

Posted: Thu Nov 03, 2016 1:31 am
by Ascertes
Samee3 wrote:If I remember right, JetPush and JetAcceleration only apply to jump style jetpacks.
Ah, I see. In that case, any idea how I would go about making units with this modified jetpack actually move faster while in the air?
Samee3 wrote:As for your second issue, you were rather vague on the details, and I'm not entirely sure what you are asking. You wouldn't mind elaborating a bit, would you?
Hidden/Spoiler:
Examine the process; see if you missed anything. Then tell us which part you are having issues with.
[list=1]
[*]Find file/value you wish to modify
[*]Save file
[*]Munge affected side (not common)
[*]Make sure the game is reading the modified file[/list]

Pardon me if I went into slightly unnecessary detail.
So, here's the jist of it:
1. I copied stock files from REP and CIS to my custom side.
2. I took the stock CIS assault droid and Jet trooper and changed up some of their values, as well as their weapon loadouts. The units themselves work fine.
3. I have also modified these copied stock weapons and ammunition: Rocket Launcher, Time Bomb and Detpack. I only changed the damage these would do.
4. After saving these files, cleaning (everything), munging (everything), The changes I have applied to the weapons with the files in my custom side do not take effect.
5. I believe this stems from the weapons and ammunition tracing back to files in the Common side folder. I have a copy of this in my SIDE folder, as I'm supposed to.
6. Modifying the files that my new side's weapons and ammo inherit from Common do not change anything in game.

I hope this helps. How would I check to see if it's reading the modified file? Just view the changes in game? If so, it's definitely not reading them :|

Re: Jets and Weapons: How to Modify?

Posted: Thu Nov 03, 2016 2:16 am
by AnthonyBF2
If you're making a mod map and want to use custom sides, it sounds like you forgot to tell the game to look for side files in the addon directory instead of the regular side files.

In your map Lua files, and add dc: right before SIDE\\

If this is for the stock game, copy the side files munged in mod tools over the old side files in GameData\Data\_LVL_PC\SIDE

Re: Jets and Weapons: How to Modify?

Posted: Thu Nov 03, 2016 3:07 am
by Samee3
Ascertes wrote:
Samee3 wrote:If I remember right, JetPush and JetAcceleration only apply to jump style jetpacks.
Ah, I see. In that case, any idea how I would go about making units with this modified jetpack actually move faster while in the air?
ControlSpeed

You can find the details in com_inf_default.

Re: Jets and Weapons: How to Modify?

Posted: Thu Nov 03, 2016 5:13 pm
by Ascertes
AnthonyBF2 wrote:If you're making a mod map and want to use custom sides, it sounds like you forgot to tell the game to look for side files in the addon directory instead of the regular side files.

In your map Lua files, and add dc: right before SIDE\\

If this is for the stock game, copy the side files munged in mod tools over the old side files in GameData\Data\_LVL_PC\SIDE
This if for my mod map. The units themselves appear in game and I do have dc in my LUA for my custom side. It's just the weapons that don't want to change, unless I need to add something else?

Samee3 wrote:ControlSpeed

You can find the details in com_inf_default.
Thanks :) I'll see if this works!