View unanswered posts | View active topics It is currently Thu Oct 10, 2024 12:47 pm



Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
 Need help making stuff not buyable... 
Author Message

Joined: Mon Dec 07, 2009 12:56 am
Posts: 36
Reply with quote
Post 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
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13143
Location: Here
Reply with quote
Post Re: Need help making stuff not buyable...
Put "Buyable = 0" in the object's code.


Tue Feb 16, 2010 8:55 pm
Profile
User avatar

Joined: Mon Jun 29, 2009 2:40 am
Posts: 610
Location: Deep below The Map of Mars
Reply with quote
Post 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
Profile

Joined: Mon Dec 07, 2009 12:56 am
Posts: 36
Reply with quote
Post 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 :grin:


Wed Feb 17, 2010 2:43 am
Profile
User avatar

Joined: Sun Aug 09, 2009 9:26 am
Posts: 1633
Reply with quote
Post 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
Profile

Joined: Mon Dec 07, 2009 12:56 am
Posts: 36
Reply with quote
Post Re: Need help making stuff not buyable...
It still doesnt work...


Wed Feb 17, 2010 3:04 am
Profile
User avatar

Joined: Sun Aug 09, 2009 9:26 am
Posts: 1633
Reply with quote
Post Re: Need help making stuff not buyable...
Augh! I don't know, that's supposed to work.


Wed Feb 17, 2010 3:07 am
Profile

Joined: Mon Dec 07, 2009 12:56 am
Posts: 36
Reply with quote
Post 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
Profile
DRL Developer
DRL Developer

Joined: Fri May 15, 2009 10:29 am
Posts: 4107
Location: Russia
Reply with quote
Post 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
Profile
User avatar

Joined: Mon Jun 29, 2009 2:40 am
Posts: 610
Location: Deep below The Map of Mars
Reply with quote
Post 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
Profile
User avatar

Joined: Sun Aug 09, 2009 9:26 am
Posts: 1633
Reply with quote
Post 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
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post 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
Profile
User avatar

Joined: Sat Jun 16, 2007 2:31 am
Posts: 2982
Location: Texas
Reply with quote
Post Re: Need help making stuff not buyable...
wat
Code:
Perceptiveness = -1


Also, case sensitivity and proper tabbing.


Thu Feb 18, 2010 5:49 am
Profile

Joined: Mon Dec 07, 2009 12:56 am
Posts: 36
Reply with quote
Post 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 :oops: Thanks for the help guys I now understand how to mod CC a little better!


Thu Feb 18, 2010 6:35 am
Profile
User avatar

Joined: Mon Jun 29, 2009 2:40 am
Posts: 610
Location: Deep below The Map of Mars
Reply with quote
Post Re: Need help making stuff not buyable...
Well then.
Glad to be of service.


Thu Feb 18, 2010 7:54 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 16 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: Google [Bot]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.041s | 16 Queries | GZIP : Off ]