haggis
  • haggis
  • 50.25% (Neutral)
  • Private Topic Starter
5 years ago

Sadly world builder isn't working for me due to my modding :/ the game launches fine but apparently the world builder is pickier about syntax.

Originally Posted by: Annihilationzh 


I am horrified that you're not fixing those errors.



I fixed most of them, but these 2 remain (World Builder can't find them):

Weapon FirestormSmallCreationWeapon

WeaponTemplate FirestormSmallCreationWeapon

Pretty sure that weapon exists? I copied it from inferno cannon to a new weapon I made, is it because my new weapon is at the top of the file?

Also I've no idea what to do with the World Builder once I'm in. It seems like a tool for making maps?
Annihilationzh
5 years ago

fixed most of them, but these 2 remain (World Builder can't find them):

Weapon FirestormSmallCreationWeapon

WeaponTemplate FirestormSmallCreationWeapon


I have seen that before but I can't remember what causes it. I'm thinking it's an error near the weapon or in the code of the unit, rather than the actual weapon.

You do need to be careful with anything world builder detects. Every error can make the game unstable.

This tool can help:
https://contra.cncguild.net/oldsite/Eng/checker.php 

If you give me the results of a scan by this tool, I should be able to tell you what's wrong.

Also I've no idea what to do with the World Builder once I'm in. It seems like a tool for making maps?


It is and that makes it great for testing mods. It's error checker is also gold.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
haggis
  • haggis
  • 50.25% (Neutral)
  • Private Topic Starter
5 years ago


If you give me the results of a scan by this tool, I should be able to tell you what's wrong.

Originally Posted by: Annihilationzh 



That's a lot of warnings, not sure if it's because my INI folders only has the INIs I actually modified.

It is and that makes it great for testing mods. It's error checker is also gold.



Does it only output maps? Do I make a map with objects in it, then load it up in-game like a save file?   errorlog_ini.txt (1,914kb) downloaded 39 time(s).
Annihilationzh
5 years ago
I'm laughing my head off at that result.

See the top of the error log. It only detected and scanned 15 ini files and 4 upgrades. There are 87 upgrades and 135 ini files in the base game. So the scan failed. It needs to scan all the ini files or it will detect all the missing things.

I'd understand if it detected 0 upgrades - that would mean it couldn't find upgrade.ini - but it found 4? lol? I'm guessing that you have a syntax error between upgrades 4 & 5 in upgrade.ini.

That's a lot of warnings, not sure if it's because my INI folders only has the INIs I actually modified.


Most of the errors are because the error checker didn't find all the ini files. There are some minor errors in the base ini files though. Mostly stuff like death types not being covered.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
haggis
  • haggis
  • 50.25% (Neutral)
  • Private Topic Starter
5 years ago
I have 12 ini files in there, and upgrade.ini is not one of them :/
Annihilationzh
5 years ago
The scanner needs to scan all ini files or it won't work. Why do you only have 12? Did you delete some?
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
haggis
  • haggis
  • 50.25% (Neutral)
  • Private Topic Starter
5 years ago

The scanner needs to scan all ini files or it won't work. Why do you only have 12? Did you delete some?

Originally Posted by: Annihilationzh 



I only copied over the files I actually changed hehe... Is that not how I'm supposed to mod the game? (beside the obvious problem of the tool requiring all the files for the check)

Got some more questions in the meantime:

1. When I add ECM behavior to a unit, the unit keeps playing the shooting FX (with the muzzle fire, without actually shooting) in a loop. How do I fix this? (I have commented out the line where the ECM behavior stops when the main weapon shoots, not sure if that affects this)

2. Is it possible to add scatter to bullet weapons? I tried adding scatter to minigunner's anti-air weapon, it doesn't seem to do anything.

3. Is it possible to add pierce to gattlings? Or should I just add an AoE?

4. I added stealth to Overlord and would like it to lose it whenever it does anything. However, its gattling can shoot without breaking stealth, even though I have StealthForbiddenConditions = MOVING FIRING_PRIMARY ATTACKING RIDERS_ATTACKING

5. Is it possible to create a "support fire" link between units? I'm thinking of making arties have a second, longer range attack that requires a spotter (either infantry or a support vehicle). Would some kind of code from the Patriots work here? I looked at it but it seemed to require the same unit...

6. The Internet Center has a giant comment warning against changing its build limit of 1. Is it due to the satellite hack or to the hacker contain module? I'm thinking of adding other buildings/vehicles with hacker contain behavior, but only if it wouldn't give me random crashes.
Annihilationzh
5 years ago

1. When I add ECM behavior to a unit, the unit keeps playing the shooting FX (with the muzzle fire, without actually shooting) in a loop. How do I fix this? (I have commented out the line where the ECM behavior stops when the main weapon shoots, not sure if that affects this)


So that's called WeaponMuzzleFlash in the draw module.

The simplest and quickest solution is to remove the muzzle flash entirely with HideSubObject.

However, It might stop doing that if you make the gun/cannon and muzzle flash the secondary weapon. I'm not sure.

Is it possible to add scatter to bullet weapons? I tried adding scatter to minigunner's anti-air weapon, it doesn't seem to do anything.


Bullet weapons don't have AoE. So if you add scatter they'll miss 100% of the time. I can't remember at all if scatter does something different to air weapons.

3. Is it possible to add pierce to gattlings? Or should I just add an AoE?


Pierce like going through the unit and damaging things behind? It's awkward in this game to create anything like that. You'd need a projectile weapon, and you'd have to disable collision so the projectile wouldn't just hit things, and the projectile would need it's own AoE weapon to do damage.

4. I added stealth to Overlord and would like it to lose it whenever it does anything. However, its gattling can shoot without breaking stealth, even though I have StealthForbiddenConditions = MOVING FIRING_PRIMARY ATTACKING RIDERS_ATTACKING


You could have it reveal itself when the overlord's fake gattling gun fires. But that's about it. A seriously convoluted workaround might be able to do it.

5. Is it possible to create a "support fire" link between units? I'm thinking of making arties have a second, longer range attack that requires a spotter (either infantry or a support vehicle). Would some kind of code from the Patriots work here? I looked at it but it seemed to require the same unit...


It's semi-feasible. You could experiment with drone spotting or the Avenger's designator.

The only way I can think of that might get the patriot method working would be to have the spotter and the artillery be the same unit. Like giving the spotter an upgrade into the artillery.

This is really pushing it, but the technical's variations might be able to make two different units identified as one.

6. The Internet Center has a giant comment warning against changing its build limit of 1. Is it due to the satellite hack or to the hacker contain module? I'm thinking of adding other buildings/vehicles with hacker contain behavior, but only if it wouldn't give me random crashes.


It's the satellite.

I once converted the listening outpost into a hacker truck and the only bug was that the tank hunters would randomly decided not to shoot.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Adjiesman
5 years ago
Hi, i'm new modder, I want to ask, I have finished modeling my tank, but when in the game, the tank that I made can not be clicked directly, how do I fix this?
Annihilationzh
5 years ago

Hi, i'm new modder, I want to ask, I have finished modeling my tank, but when in the game, the tank that I made can not be clicked directly, how do I fix this?

Originally Posted by: Adjiesman 


In code there's only one cause for that. The wrong kindofs. I can't help if it's a mistake in the model's design. I'm not that well versed in gmax.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Adjiesman
5 years ago
Thanks for your responding, but I mean the problem is that the unit I made can be drag select but cannot be directly select, for example I have a dozer in the field, then I directly select the dozer but nothing happens, as soon as I drag select it can, I have try to fix the kindofs and the model, it's still the same.
haggis
  • haggis
  • 50.25% (Neutral)
  • Private Topic Starter
5 years ago
A single question today:

Is it possible to force a weapon to only aim in the direction of a vehicle, without any Z-plane (up and down) delta?

I tried adding machine guns (well, cannons) to jets, and IRL they would only shoot where the jet's nose is pointing. But in game, the machine guns would shoot targets on the ground without the jet actually tipping its nose down (basically the reverse of a quad cannon shooting up).
Annihilationzh
5 years ago

Thanks for your responding, but I mean the problem is that the unit I made can be drag select but cannot be directly select, for example I have a dozer in the field, then I directly select the dozer but nothing happens, as soon as I drag select it can, I have try to fix the kindofs and the model, it's still the same.

Originally Posted by: Adjiesman 


Yeah I understood the first time. I can't help you to fix a model.

A single question today:

Is it possible to force a weapon to only aim in the direction of a vehicle, without any Z-plane (up and down) delta?

I tried adding machine guns (well, cannons) to jets, and IRL they would only shoot where the jet's nose is pointing. But in game, the machine guns would shoot targets on the ground without the jet actually tipping its nose down (basically the reverse of a quad cannon shooting up).

Originally Posted by: haggis 


The marauder tank has that feature. Min/MaxTargetPitch. I presume it should work on planes.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
haggis
  • haggis
  • 50.25% (Neutral)
  • Private Topic Starter
5 years ago

The marauder tank has that feature. Min/MaxTargetPitch. I presume it should work on planes.

Originally Posted by: Annihilationzh 



1. I believe this worked, however it introduced a new issue:

If the jets cannot shoot at a ground target with the machine gun due to pitch, it will not attempt to find a proper attack vector; instead it will just circle the target (since its machine gun clip isn't empty, it will not return to base by itself - I did put the clip reloads upon return to base on the machine gun weapon) and take AA fire. How do I fix this?

I have found this in the A10:


Behavior = DeliverPayloadAIUpdate ModuleTag_07
End



However it's an AI and I think a unit can't have 2 AI packages?

EDIT test that behavior out, the game launches with it (alongside the jet's default AI), however it doesn't do what I think it does and completely kills the jet/airfield interaction (jets will refuse to land).


2. What does this line actually do?
ArmedRidersUpgradeMyWeaponSet = Yes

I've seen it in the Assault Troop Crawler, which is quite puzzling since it's more or less just a mobile bunker no? It already has PassengersAllowedToFire = Yes

3. Why does the helix get a WeaponsetUpgrade with Black Napalm? I'd get it if the Napalm Bomb was part of its Weaponset, but it's not. Is it old code I can replace? (I'd like to use its WeaponsetUpgrade behevior for something else)
Annihilationzh
5 years ago

1. I believe this worked, however it introduced a new issue:

If the jets cannot shoot at a ground target with the machine gun due to pitch, it will not attempt to find a proper attack vector; instead it will just circle the target (since its machine gun clip isn't empty, it will not return to base by itself - I did put the clip reloads upon return to base on the machine gun weapon) and take AA fire. How do I fix this?


This has come up before with people wanting an A10 that lands at an airfield. We never found a way to get it to dive whilst attacking. You can do things like mimic the comanche or use an aurora's locomotor switch, but neither one really works well.

However it's an AI and I think a unit can't have 2 AI packages?


That is correct. It won't crash but it won't work either.

2. What does this line actually do?
ArmedRidersUpgradeMyWeaponSet = Yes

I've seen it in the Assault Troop Crawler, which is quite puzzling since it's more or less just a mobile bunker no? It already has PassengersAllowedToFire = Yes


When the crawler is empty it has no weapon. When it's occupied it has a dummy weapon. The dummy weapon is to fix targeting.

3. Why does the helix get a WeaponsetUpgrade with Black Napalm? I'd get it if the Napalm Bomb was part of its Weaponset, but it's not. Is it old code I can replace? (I'd like to use its WeaponsetUpgrade behevior for something else)


I would remove it and see if anything changes. I'm pretty sure nothing will.

I'm thinking it was supposed to upgrade the napalm bomb in an earlier game version. In the current version the napalm bomb upgrades itself to black napalm. The helix has other obsolete code as well. Note the other WeaponsetUpgrade for the gattling cannon.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Adjiesman
5 years ago

Yeah I understood the first time. I can't help you to fix a model.

Originally Posted by: Annihilationzh 



Never mind, after all i've fixed it. This time, i have another question. is it possible to make America jet B3 that can shoot a missile like the Tomahawk or SCUD Launcher?

Annihilationzh
5 years ago

Never mind, after all i've fixed it. This time, i have another question. is it possible to make America jet B3 that can shoot a missile like the Tomahawk or SCUD Launcher?

Originally Posted by: Adjiesman 


Yup. Are you having trouble implementing it?
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
haggis
  • haggis
  • 50.25% (Neutral)
  • Private Topic Starter
5 years ago

This has come up before with people wanting an A10 that lands at an airfield. We never found a way to get it to dive whilst attacking. You can do things like mimic the comanche or use an aurora's locomotor switch, but neither one really works well.

Originally Posted by: Annihilationzh 



I tried making the weapon anti-air only, but the jets still won't go back to base after emptying their missiles.

1. It is possible for jets to return to base by themselves when there's nothing to shoot at in the skies with the (AA only) machine gun and empty missiles clip?

2. I tried adding the angry mob Molotov cocktails to Redguards. They sorta work (the inf makes a weird twitch when they throw it however), but they don't work at all on Minigunners (it has lower range than their gun but even at short range they won't throw them). Any ideas how to fix?

3. Is it possible to boost the range of a container? I think just garrisoning units comes with a 25% range boost, but I'd like choppers to have a bigger boost for their garrisoned units than Overlords (since projectiles should have more range from height).

4. I made INFA's helix bunker inherent to the helix; that part works fine, what doesn't is the draw module (I simply added the bunker's draw module to the helix). The bunker bits get drawn, but when the helix is tilted (it tilts as much as 45 degrees when going full speed), the bunker bits stay parallel to the ground.

5. Is there a smarter way to combine 2 buildings than copying all the code into the other? E.g. If I want to make a Gattling Gun Bunker, can I just use OCLs?
Annihilationzh
5 years ago

1. It is possible for jets to return to base by themselves when there's nothing to shoot at in the skies with the (AA only) machine gun and empty missiles clip?


Not directly. It will stay in the air as long as it has any ammo of any kind. Planes are very limited in what you can do with their weapons without getting issues like this. Even bike logic doesn't work on them.

2. I tried adding the angry mob Molotov cocktails to Redguards. They sorta work (the inf makes a weird twitch when they throw it however), but they don't work at all on Minigunners (it has lower range than their gun but even at short range they won't throw them). Any ideas how to fix?


See the comanche. They'll only use their primary weapon by default. You have to tell them when to use others. I'm actually surprised the red guard works.

3. Is it possible to boost the range of a container? I think just garrisoning units comes with a 25% range boost, but I'd like choppers to have a bigger boost for their garrisoned units than Overlords (since projectiles should have more range from height).


I'm pretty sure that's a no.

4. I made INFA's helix bunker inherent to the helix; that part works fine, what doesn't is the draw module (I simply added the bunker's draw module to the helix). The bunker bits get drawn, but when the helix is tilted (it tilts as much as 45 degrees when going full speed), the bunker bits stay parallel to the ground.


Well, now you know why I never suggested doing that with the overlord lol. The simplest solution is to just make a three-in-one addon. I've never bothered trying to fix it any other way.

5. Is there a smarter way to combine 2 buildings than copying all the code into the other? E.g. If I want to make a Gattling Gun Bunker, can I just use OCLs?


Depends on how you do the OCL. You can put an overlord addon on practically anything. With a normal OCL you would end up with two seperate buildings overlapping each other.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
haggis
  • haggis
  • 50.25% (Neutral)
  • Private Topic Starter
5 years ago

Not directly. It will stay in the air as long as it has any ammo of any kind. Planes are very limited in what you can do with their weapons without getting issues like this. Even bike logic doesn't work on them.

Originally Posted by: Annihilationzh 



I got it to "work" by removing the "return to base" behavior from the machine gun; now the jets will return by themselves after firing the missiles, even if they didn't fire the machine gun at all. I'll just put a big reload time on it (big enough that it won't have reloaded before returning to base) so that it effectively can only have 1 clip fired per sortie.

See the comanche. They'll only use their primary weapon by default. You have to tell them when to use others. I'm actually surprised the red guard works.



I... don't quite get it. Don't most units use all their weapons? What's special about the Comanche/Minigunner/Redguard?

I added these lines to the Minigunner's AI and it works now:

; this is a bit of a trick... normally, units cannot move-and-fire at
; the same time. we need the comanche to be able to. so we give it
; a "turret" (invisible) and put the two main weapons on it, but with
; no turn rate. voila!
Turret
TurretTurnRate = 0 ; this "turret" does not turn
TurretPitchRate = 0 ; nor does it pitch
ControlledWeaponSlots = TERTIARY
End



Redguards still work out of the box, somehow. I tested it both with the player and an AI faction controlling the Redguards.

Also, I added a service rifle to the Supply Truck (those dudes work in the frontline!) and the Dozer... I don't know why, but somehow it killed the Supply Truck's KatyushaWeapon that I added earlier. I can still make it fire with ctrl + left click for attack ground, but the units will not fire the weapon:

1. if I target an actual enemy (both through clicking and through control clicking);

2. by themselves, ever

Also, unlike the Dozer (who just sits there and attacks with what's basically an infantry rifle just like an infantry unit would), it will shoot 1 shot of its rifle (it has a clip of 3) and immediately turn away. So even that part of the weapon does not work.

I have added the "CAN_ATTACK" kindof to it, doesn't change anything (also, the KatyushaWeapon worked fine before without this).

Is this related to what you said about the Comanche? Why (tanks work fine when I give them 3 weapons)? How do I fix this? They already have a turret behavior in their AI.

EDIT: I think this part may partly be due to attack range... the rocket barrage has a minimum range of 100, and the rifle has a maximum range of 100. If I just disable the rifle weapon, the rocket barrage works fine. Does this also mean I can't add a small caliber secondary weapon to artillery pieces for self defense?