UFO:Alien Invasion

Development => Coding => Topic started by: mark.hawrylak on January 14, 2010, 05:36:19 am

Title: see all items in the market for purchase for testing
Post by: mark.hawrylak on January 14, 2010, 05:36:19 am
I am trying to do some testing and I need a way to see every item in the market.

Is there a console command or a save game that can give me access to every item in the market?  or perhaps a command to give the save game every research item completed?
Title: Re: see all items in the market for purchase for testing
Post by: Kildor on January 14, 2010, 05:49:28 am
Look to the debug_ commands (if you use debug version of game)
Title: Re: see all items in the market for purchase for testing
Post by: mark.hawrylak on January 14, 2010, 07:37:09 am
I have done a debug_help in the console and i cannot figure out which command will give me all research-able items in the game.
I am using the latest svn and compiling with windows_debug in C::B
help..

Title: Re: see all items in the market for purchase for testing
Post by: Destructavator on January 14, 2010, 07:53:35 am
IIRC the auto completion feature in the console should help, I think it is the TAB key, try typing just "debug" then TAB or enter and you might get a list.

I'm on my other computer right now, so I can't check it right this second...
Title: Re: see all items in the market for purchase for testing
Post by: Mattn on January 14, 2010, 07:54:29 am
there was something like debug_itemadd or debug_additem - i don't remember exactly
Title: Re: see all items in the market for purchase for testing
Post by: geever on January 14, 2010, 09:01:48 am
there was something like debug_itemadd or debug_additem - i don't remember exactly

it doesn't add every item only soldier equipment if I'm right. But I wanted to change this behavior...

-geever
Title: Re: see all items in the market for purchase for testing
Post by: mark.hawrylak on January 14, 2010, 11:59:35 pm
it sounds like there is no easy way to get *ALL* items in the market or all research done in one sweep.
can someone supply me a save game with this?

remove 'zz'
mzzark.hawrylak@gmail.com
Title: Re: see all items in the market for purchase for testing
Post by: Destructavator on January 15, 2010, 01:08:16 am
IIRC not all items in the game appear on the market, some have to be recovered from aliens.

Regardless, you can alter the .ufo script files - they are in plain English and no programming experience is really needed to change how the game runs with them - by unzipping the "ufos.pk3" file and changing them with a text editor (hint: on Windows, Wordpad works better than Notepad, simply because of spacing/line ending issues).

The .ufo files also control the market among other things, and have plain English comments to help change them.


Also, what exactly are you testing?  What are you really trying to accomplish as an end result?  If we knew just what you're trying to do - the complete picture - it would make it much easier, and we might also be able to suggest a better way of helping you accomplish it.
Title: Re: see all items in the market for purchase for testing
Post by: mark.hawrylak on January 15, 2010, 02:39:31 am
in the market there are lots of items that are not showing correctly.
ie if u look at the assult rife magazine,  the image is zoomed in too much.
I want to compile a complete list of all the items that are not showing correctly for a bug report, and in order to do that, I need every market item exposed, or a save game that has all items available so I can investigate this issue further and document it properly.
Title: Re: see all items in the market for purchase for testing
Post by: Mattn on January 15, 2010, 07:47:57 am
debug_researchall
debug_additems [baseid]
Title: Re: see all items in the market for purchase for testing
Post by: mark.hawrylak on January 16, 2010, 12:44:02 am
perfect, that worked,  thanks
Title: Re: see all items in the market for purchase for testing
Post by: mark.hawrylak on February 07, 2010, 08:12:07 am
debug_additems [baseid]
failed to give me the following items:
Alien Craft Plating
Alien Astrogation
Alien Propulsion
Alien Detection
Alien Materials

Title: Re: see all items in the market for purchase for testing
Post by: geever on February 08, 2010, 05:26:13 pm
debug_additems [baseid]
failed to give me the following items:
Alien Craft Plating
Alien Astrogation
Alien Propulsion
Alien Detection
Alien Materials

it doesn't add every item only soldier equipment if I'm right. But I wanted to change this behavior...
:P

-geever