View unanswered posts | View active topics It is currently Fri Dec 27, 2024 1:21 pm



Reply to topic  [ 10 posts ] 
 Default Buy Menu Selection 
Author Message

Joined: Fri Apr 22, 2011 12:54 am
Posts: 6
Reply with quote
Post Default Buy Menu Selection
When you first start a game, and you go to buy something, there is the soldier with the gun and the digger already prepped to buy. I NEVER buy this, so is there a way to change what units the game sets as the default "first purchase"?

If not, a mod that gives this utility should really be made. I have a basic soldier with a machine gun and a rocket launcher that I always get, and doing this would get him on the field that much faster. Any help out there?


Wed Sep 14, 2011 3:18 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Default Buy Menu Selection
I think that thing is hardcoded, and I'm pretty sure changing that is pretty impossible.

And I also dislike that thing, an empty buy menu or a save-able preset would be a lot better.


Wed Sep 14, 2011 3:25 am
Profile

Joined: Fri Apr 22, 2011 12:54 am
Posts: 6
Reply with quote
Post Re: Default Buy Menu Selection
Well, I went looking through some of the configuration files in base.rtf. Never found anything related to it, but it seems like it would be simple to change, if I knew where it was. I mean, it has to be coded somewhere!


Wed Sep 14, 2011 3:59 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Default Buy Menu Selection
It is, no doubt about that, but I suppose it's hardcoded.

Hardcoded as in coded in a place hard (impossible by normal means) to modify.


Wed Sep 14, 2011 4:07 am
Profile
User avatar

Joined: Tue Mar 16, 2010 7:38 pm
Posts: 447
Location: The Ninth Circle
Reply with quote
Post Re: Default Buy Menu Selection
Hypothetically you could rename an actor, gun, and tool to those three items, and replace the standard buy menu preset, but that might not be worth the effort, and could potentially screw up something else somewhere along the lines. Or just make those three things not suck.


Wed Sep 14, 2011 5:19 am
Profile
DRL Developer
DRL Developer

Joined: Fri May 15, 2009 10:29 am
Posts: 4107
Location: Russia
Reply with quote
Post Re: Default Buy Menu Selection
Nope, those are all loaded before mods, so you'd have to edit vanilla files.


Wed Sep 14, 2011 5:55 am
Profile

Joined: Fri Apr 22, 2011 12:54 am
Posts: 6
Reply with quote
Post Re: Default Buy Menu Selection
I went looking through the .lua files in base.rtf, and I found where the preset cargo purchase is determined. (I think) In each activity file, there is a bit of code that looks like this-
Base.rte\Activities\SkirmishDefense.lua(158): actor[x]:AddInventoryItem(CreateHDFirearm("Medium Digger"));

I will see what changing that around nets me.


Wed Sep 14, 2011 5:01 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: Default Buy Menu Selection
That only applies to skirmish.

You cannot alter the default buy menu content at the present time, however if you remove the object itself, it will no longer be there. So you could, if you so felt like it, adjust the presetname all three of the items in Coalition.rte and Base.rte respectably to change this.


Wed Sep 14, 2011 5:13 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Mon Jul 12, 2010 5:39 am
Posts: 4558
Reply with quote
Post Re: Default Buy Menu Selection
That can ♥♥♥♥ up a lot of maps though.


Thu Sep 15, 2011 1:42 am
Profile WWW
User avatar

Joined: Tue Mar 16, 2010 7:38 pm
Posts: 447
Location: The Ninth Circle
Reply with quote
Post Re: Default Buy Menu Selection
Lizardheim wrote:
Nope, those are all loaded before mods, so you'd have to edit vanilla files.

I meant to keep it within vanilla, but now that you mention it, that's a really good point. Didn't even occur to me to include mods. Not that one could do so, of course.

Basically, there are a lot of reasons why this isn't possible. If it really bothers you that much, give the SMG an infinite-round mag and make the Soldier Light made of test material. It'll break the game, but they're simple changes that should be amusing the first time or two you play with them. If you're into that sorta thing.


Thu Sep 15, 2011 4:28 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

Who is online

Users browsing this forum: No registered users


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.044s | 15 Queries | GZIP : Off ]