Author |
Message |
MesoTroniK
Joined: Mon Dec 07, 2009 12:56 am Posts: 36
|
Need help making stuff not buyable...
Hello everyone, I downloaded a new faction, and I am using their activites to fight in skirmish. But I wanna make it so I cannot buy any of their weapons, actors, craft, etc. Removing the line of code that adds them to a buy group doesnt seem to do anything. If anyone could explain to me how to do this, it would be greatly appreciated!
|
Tue Feb 16, 2010 8:53 pm |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
Re: Need help making stuff not buyable...
Put "Buyable = 0" in the object's code.
|
Tue Feb 16, 2010 8:55 pm |
|
|
PhantomAGN
Joined: Mon Jun 29, 2009 2:40 am Posts: 610 Location: Deep below The Map of Mars
|
Re: Need help making stuff not buyable...
I find that most of the time doing some Find&Replace functions on all files allows you to control this very well.
First, Find all instances of "Buyable = 1" and replace with "Buyable = 0" Then, Find "Buyable = 0" and replace with "" (this makes no sense at first, see next step) Finally, find "GoldValue =" and replace with "Buyable = 0 GoldValue = "
This way, every item with a gold value now has "Buyable = 0" stuck on in front. Note that the carriage return after "Buyable = 0" in the final command is crucial.
Find&Replace is a terrific modding tool, though most programs make it blind. I recommend Notepad ++ on Windows and TextWrangler on a Mac. Oh, and if you can limit the searched files in the mod directory to those that have the file suffix ".ini" the functions are more efficient.
This is easy in textwrangler, I've never done this on a windows machine.
|
Tue Feb 16, 2010 9:09 pm |
|
|
MesoTroniK
Joined: Mon Dec 07, 2009 12:56 am Posts: 36
|
Re: Need help making stuff not buyable...
Tried your suggestions with no luck. There is no "buyable = 1" in any of the files im trying to modify. Also putting in "buyable = 0" in the file makes the game crash, perhaps I'm putting them in the wrong place? More advice would be appreciated
|
Wed Feb 17, 2010 2:43 am |
|
|
Benpasko
Joined: Sun Aug 09, 2009 9:26 am Posts: 1633
|
Re: Need help making stuff not buyable...
It's not buyable, it's Buyable, with no quotes. Code: AddActor = AHuman PresetName = Dummy Description = Standard dummy soldier. Quite resilient to impacts and falls, and very agile. AddToGroup = Actors Mass = 32 Buyable = 0 GoldValue = 80 HitsMOs = 1 GetsHitByMOs = 1 It should look like that.
|
Wed Feb 17, 2010 2:47 am |
|
|
MesoTroniK
Joined: Mon Dec 07, 2009 12:56 am Posts: 36
|
Re: Need help making stuff not buyable...
It still doesnt work...
|
Wed Feb 17, 2010 3:04 am |
|
|
Benpasko
Joined: Sun Aug 09, 2009 9:26 am Posts: 1633
|
Re: Need help making stuff not buyable...
Augh! I don't know, that's supposed to work.
|
Wed Feb 17, 2010 3:07 am |
|
|
MesoTroniK
Joined: Mon Dec 07, 2009 12:56 am Posts: 36
|
Re: Need help making stuff not buyable...
Code: AddActor = AHuman InstanceName = Oppressor MKII AddToGroup = Kloveska Military Force AddInventory = HDFirearm CopyOf = OPSR Autocannon AddInventory = HDFirearm CopyOf = OPSR Shotcannon AddInventory = HDFirearm CopyOf = OPSR Minigun Pistol AddInventory = HeldDevice CopyOf = OPSR Shield AddInventory = HDFirearm CopyOf = OPSR Plasma Digger Mass = 300 //RestThreshold = -100 Buyable = 0 GoldValue = 800 Perceptiveness = -1 When coded like this the game crashes when loading up.
|
Wed Feb 17, 2010 3:51 am |
|
|
Lizardheim
DRL Developer
Joined: Fri May 15, 2009 10:29 am Posts: 4107 Location: Russia
|
Re: Need help making stuff not buyable...
Do you put it after everything else? like, after the opressor is loaded?
|
Wed Feb 17, 2010 9:35 am |
|
|
PhantomAGN
Joined: Mon Jun 29, 2009 2:40 am Posts: 610 Location: Deep below The Map of Mars
|
Re: Need help making stuff not buyable...
And you're sure you did all those steps right? Dang. It's always worked for me, not sure what went wrong for you.
|
Wed Feb 17, 2010 4:19 pm |
|
|
Benpasko
Joined: Sun Aug 09, 2009 9:26 am Posts: 1633
|
Re: Need help making stuff not buyable...
You need to make sure that this file loads after the weapons, I think.
|
Thu Feb 18, 2010 3:31 am |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: Need help making stuff not buyable...
Maybe you could SAY THE ERROR THAT THE GAME CRASHES WITH
I can make CC crash five hundred different ways; telling us that it crashed is about as useful as saying that HIV is a disease.
|
Thu Feb 18, 2010 5:33 am |
|
|
whitty
Joined: Sat Jun 16, 2007 2:31 am Posts: 2982 Location: Texas
|
Re: Need help making stuff not buyable...
wat Also, case sensitivity and proper tabbing.
|
Thu Feb 18, 2010 5:49 am |
|
|
MesoTroniK
Joined: Mon Dec 07, 2009 12:56 am Posts: 36
|
Re: Need help making stuff not buyable...
Quote: Also, case sensitivity and proper tabbing. Oops I was pressing spacebar till it looked right instead of pressing tab once, it works now Thanks for the help guys I now understand how to mod CC a little better!
|
Thu Feb 18, 2010 6:35 am |
|
|
PhantomAGN
Joined: Mon Jun 29, 2009 2:40 am Posts: 610 Location: Deep below The Map of Mars
|
Re: Need help making stuff not buyable...
Well then. Glad to be of service.
|
Thu Feb 18, 2010 7:54 am |
|
|
|