Data Realms Fan Forums
http://45.55.195.193/

Need help making stuff not buyable...
http://45.55.195.193/viewtopic.php?f=1&t=17857
Page 1 of 2

Author:  MesoTroniK [ Tue Feb 16, 2010 8:53 pm ]
Post subject:  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!

Author:  CaveCricket48 [ Tue Feb 16, 2010 8:55 pm ]
Post subject:  Re: Need help making stuff not buyable...

Put "Buyable = 0" in the object's code.

Author:  PhantomAGN [ Tue Feb 16, 2010 9:09 pm ]
Post subject:  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.

Author:  MesoTroniK [ Wed Feb 17, 2010 2:43 am ]
Post subject:  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:

Author:  Benpasko [ Wed Feb 17, 2010 2:47 am ]
Post subject:  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.

Author:  MesoTroniK [ Wed Feb 17, 2010 3:04 am ]
Post subject:  Re: Need help making stuff not buyable...

It still doesnt work...

Author:  Benpasko [ Wed Feb 17, 2010 3:07 am ]
Post subject:  Re: Need help making stuff not buyable...

Augh! I don't know, that's supposed to work.

Author:  MesoTroniK [ Wed Feb 17, 2010 3:51 am ]
Post subject:  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.

Author:  Lizardheim [ Wed Feb 17, 2010 9:35 am ]
Post subject:  Re: Need help making stuff not buyable...

Do you put it after everything else? like, after the opressor is loaded?

Author:  PhantomAGN [ Wed Feb 17, 2010 4:19 pm ]
Post subject:  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.

Author:  Benpasko [ Thu Feb 18, 2010 3:31 am ]
Post subject:  Re: Need help making stuff not buyable...

You need to make sure that this file loads after the weapons, I think.

Author:  Grif [ Thu Feb 18, 2010 5:33 am ]
Post subject:  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.

Author:  whitty [ Thu Feb 18, 2010 5:49 am ]
Post subject:  Re: Need help making stuff not buyable...

wat
Code:
Perceptiveness = -1


Also, case sensitivity and proper tabbing.

Author:  MesoTroniK [ Thu Feb 18, 2010 6:35 am ]
Post subject:  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!

Author:  PhantomAGN [ Thu Feb 18, 2010 7:54 am ]
Post subject:  Re: Need help making stuff not buyable...

Well then.
Glad to be of service.

Page 1 of 2 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/