josh3d2004
  • josh3d2004
  • 63.5% (Friendly)
  • Private Topic Starter
19 years ago
Ok, I want to change some things within the game but don't want the hassle of a mismatch with online play. I want to make a map.ini file I guess but how do I script it to increase a units rate of fire or change a buildings set price or change how much damage a super weapon can do? Do I open INIZH.big and copy the object_blahblah and all the other lines into a map.ini file and change them there? I'm completely confused on this and have yet to try anything. If possible, could someone show me a preview of what I would have to do in order to find the names of each object, unit, super weapon, or anything and how I can change specific things about it. (like weapon range, damage made, is or is not stealth, damage radius, price, and stuff like that)

Can all this be done through map.ini editing or am I way off? Thanks

btw, I want these changes just to effect the specific map I'm making. I don't want to cheat online with official maps, I want to make my own maps and just change some stuff around without having to mod any original game files and have that dreaded mismatch message pop-up
Sponsor
red leader79
19 years ago
Well, there are several posts on how to edit (rather make your own) INI files, even a sticky post i think. But as for online play, I don't think any changes to your ini files will be accepted online.
UserPostedImage
CommieDog
19 years ago
You're largely correct about how to use map.ini. For an example of what a map.ini file should look like, find the one associated with the map Mountain Guns.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
josh3d2004
  • josh3d2004
  • 63.5% (Friendly)
  • Private Topic Starter
19 years ago


Well, there are several posts on how to edit (rather make your own) INI files, even a sticky post i think. But as for online play, I don't think any changes to your ini files will be accepted online.

red leader79 wrote:



I don't mean editing the inizh.big cabinet's ini files and re-compiling them. I mean just making a map.ini file for a specific map, I have seen maps played online with map.ini files and I figured it would work similar to my idea, although I have not found any maps changing the weapons ranges and such that's why I asked. So it is impossible to do what I want to do?


You're largely correct about how to use map.ini. For an example of what a map.ini file should look like, find the one associated with the map Mountain Guns.

CommieDog wrote:



It's good to know I'm on the right track, I assume mountain guns is an official map and I'm going to look for it now and mess around with it. Thanks for the help guys, I'll post what I find and/or if I'm still a bit confused. 😛

EDIT;

ok, I've found the file and the part that sticks out the most to me is:

;Weapon CarpetBombWeapon
; AddModule
; PrimaryDamage = 100.0
; PrimaryDamageRadius = 50.0
; AttackRange = 100.0
; DamageType = EXPLOSION
; DeathType = EXPLODED
; WeaponSpeed = 99999.0
; RadiusDamageAffects = ENEMIES NEUTRALS ; should this affect allies? @todo srj
; End
;End

I'm guessing I just find the names in world builder of whatever units or whatever I want to change and just put like


;Weapon blahblahblah
; AddModule
; PrimaryDamage = xxx
; PrimaryDamageRadius = xxx
; AttackRange = xxx
; DamageType = EXPLOSION
; DeathType = EXPLODED
; WeaponSpeed = xxx
; RadiusDamageAffects = ENEMIES NEUTRALS ; should this affect allies? @todo srj
; End
;End

I'm guessing that is correct. But I see how it says "weapon" in front of it, what would I put for a unit? just unit? or what?

or - would I change the actual shells or bullets or whatever that specific object fires?

Could someone please show me a simple example of how I would be able to change the weapons damage radius, attack range, and weapons speed of a crusader tank for team america? And explain how you found the exact unit/object name so I can find others? It would be greatly appreciated. Thanks
CommieDog
19 years ago
That bit of code you pulled out is technically incorrect--Weapon objects do not have modules so they do not need the AddModule block.

I'm guessing that is correct. But I see how it says "weapon" in front of it, what would I put for a unit? just unit? or what?

josh3d2004 wrote:


You would copy the header that declares which kind of object a piece of code represents and its name. For the Crusader, this is "Object AmericaTankCrusader".

Could someone please show me a simple example of how I would be able to change the weapons damage radius, attack range, and weapons speed of a crusader tank for team america? And explain how you found the exact unit/object name so I can find others? It would be greatly appreciated. Thanks

josh3d2004 wrote:


Here's a sample:
Weapon CrusaderTankGun
  PrimaryDamageRadius     = 10.0 ; from 5.0
  AttackRange             = 300.0 ; from 150.0
  WeaponSpeed             = 800 ; from 400
End
As for finding the weapon code:
  • Open Weapon.ini in Notepad.
  • Press Ctrl+F
  • Type "Crusader" in the dialog box that pops up
  • Press Enter
  • Repeat step 4 until plausible match is found

UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
josh3d2004
  • josh3d2004
  • 63.5% (Friendly)
  • Private Topic Starter
19 years ago


That bit of code you pulled out is technically incorrect--Weapon objects do not have modules so they do not need the AddModule block.

I'm guessing that is correct. But I see how it says "weapon" in front of it, what would I put for a unit? just unit? or what?

CommieDog wrote:


You would copy the header that declares which kind of object a piece of code represents and its name. For the Crusader, this is "Object AmericaTankCrusader".

Could someone please show me a simple example of how I would be able to change the weapons damage radius, attack range, and weapons speed of a crusader tank for team america? And explain how you found the exact unit/object name so I can find others? It would be greatly appreciated. Thanks

josh3d2004 wrote:


Here's a sample:
Weapon CrusaderTankGun
  PrimaryDamageRadius     = 10.0 ; from 5.0
  AttackRange             = 300.0 ; from 150.0
  WeaponSpeed             = 800 ; from 400
End
As for finding the weapon code:
  • Open Weapon.ini in Notepad.
  • Press Ctrl+F
  • Type "Crusader" in the dialog box that pops up
  • Press Enter
  • Repeat step 4 until plausible match is found

josh3d2004 wrote:



Thanks a ton man, I really appreciate it. Now that I have a day off from work and band **** I can finally mess around with this 😁 Thanks

I made a file "map.ini" and placed that in it, nothing else and the crusaders seemed the same. I changed the speed range and everything to see if it would differ but it was still the same. I'm going to try some other things later and I'll post what I come up with.

Edit;

Doesn't seem like anything will work I copy the ";-----------" line and try it, still doesn't work, try it without it, doesn't work. Tried it with spaces in each line, one space after the ogject 'name' line, ahhh there has to be something missing 💀
CommieDog
19 years ago
Ah, I should have mentioned that the map.ini file should be in the same directory as the map it modifies.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
josh3d2004
  • josh3d2004
  • 63.5% (Friendly)
  • Private Topic Starter
19 years ago


Ah, I should have mentioned that the map.ini file should be in the same directory as the map it modifies.

CommieDog wrote:



I know, I placed it within the folder when testing it, played that specific map with usa and built some crusader tanks and there were no changes at all 💀
CG Apollos
19 years ago
Can you upload your map.ini file so we can see the problem?
josh3d2004
  • josh3d2004
  • 63.5% (Friendly)
  • Private Topic Starter
19 years ago


Can you upload your map.ini file so we can see the problem?

AuroraAlphaHL2 wrote:



I attached it. If it is not showing up, the link is:

http://www.cncgeneralsworld.com/public/files/josh3d2004/map%20ini.zip