Jump to content

How to mod aircraft purchase price when Buyable = Yes


dskzz

Recommended Posts

I'm trying to do a mod for an EWACs - long rage, can sit in the sky for hours, and has beefy radar but is slow and unarmored. Sort of giving you an alternative to building up a new base for radar coverage. Also doubled up aircraft flight duration to reflect tankers. I'll post the EWACS when I'm happy with it for your enjoyment!

Anyway, I'm making the EWACs purchasable, because I am not even going to try and mess with the research table at this point. I'd like to do a similar thing for an SR71 Blackbird at some point, when I will mess w/ that. But for now...

My question is I have been all over the xml files left and right. I know where you mod the manufacturing section, that's easy. But I can't find where you set the purchase price of planes that are buyable. We all know that the F-17 and the Condor are buyable, can't recall the price at this point. But I imagine that it has to be settable somewhere! I just can't find the darn thing. Is it based off a factor of the sale price in items.xml? Like if it sells for x you buy for x*2, or something like that?

Need help - I got all the images and stuff done, I think it will be sweet, but need to know how to do this!

Thanks all.

PS Loving some of the mods out there and for the record Xenonauts kicks EU's rear!

Link to comment
Share on other sites

Sandyxx --- I presume you tested on vanilla aircrafts. Those will work ... cos they are hardcoded.

It's true that you set the price in items.xml. But you won't be able to make a new aircraft buyable. You can only set the vanilla ones to buyable (through aircraft.xml).

There is one way around it which is say would have a 99% chance of working (though no one tested it yet :D).

- name your new files with the same names as one of the vanilla crafts... replace the files and set the craft to buyable.

Edit.

Just made some tests - f17,mig31,marauder,corsair and fury can be set to buyable....so you would have to replace one of those.

...and of course by replace I only mean the name files...

you can have your marauder back if you call it maruader2 in file names.

Hope this makes sense to you :D

I'd like to do a similar thing for an SR71 Blackbird at some point, when I will mess w/ that

I had started working on SR71 myself... and then I remembered that the game's Fury is actually a modified blackbird :P

Edited by Theon Greyjoy
Link to comment
Share on other sites

tested it, and this is how it works:

for buyable aircraft, sell value in items xml is price of aircraft when buying. for manufactured aircraft - it's money you will get from selling it.

Yes sir, looks like that is how it works! Awesome, so with that piece of the puzzle done, my EWACS took flight and I was very happy with the results. I sent it out, had a radar range about 2/3 as big as the base's went on a mission, hovered for about a day and returned to base.

I could not find any evidence that AWACs are armed, so I left it unarmored in the mod. It's simply shot down, so all my hard work making the damage graphics was a waste of time.

I am very happy with the results. When you get a tear of notifications from a region out of range of your radar, launch the AWACs. She'll stay on station and pick up the bogies causing a ruckus. But she's unarmed and slow so you better send some fighters in to escort and clear out the trash. By the way, doubling up on all the fighter ranges helped in that regard. I think it makes the air game a nice tactical addition.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...