Cockpit Making Trouble!

For all the help you need with Armagetron!
Post Reply
Gidaio
Posts: 4
Joined: Tue Nov 25, 2008 3:21 am

Cockpit Making Trouble!

Post by Gidaio »

I'm trying to make my own, very, VERY, small cockpit.

Code: Select all

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE Resource SYSTEM "AATeam/cockpit-0.3.0.dtd">
<Resource type="aacockpit" name="test" version="0.0.1" author="Gidaio" category="">
	<Cockpit version="0.0.1">
		<Map camera="all" viewport="top">
			<Position x="0.3" y="-0.3"/>
			<Size height="0.25" width="0.25"/>
			<MapMode mode="full" rotation="spawn"/>
		</Map>
		<NeedleGauge camera="all">
			<DataSet>
				<AtomicData field="source" source="player_speed"/>
				<AtomicData field="minimum" source="0"/>
				<AtomicData field="maximum" source="max_speed"/>
			</DataSet>
			<Position x="-0.05" y="-0.75"/>
			<Size height="0.15" width="0.15"/>
			<ShowCurrent value="true"/>
			<ShowMaximum value="true"/>
			<ShowMinimum value="true"/>
			<Text value="speed"/>
		</NeedleGauge>
	</Cockpit>
</Resource>
I'm 99% sure that I have the code right, and it's an XML file. When I try and load it, I type COCKPIT_FILE gidaio/test-0.0.1.aacockpit.xml. It then closes the console, and I proceed to playing my game. When the game starts, the cockpit doesn't appear. I tried messing it up, intentionally creating errors, and Armagetron made no response, which leads me to believe that it's not loading the file. It's path is:

Code: Select all

C:\ProgramFiles\Armagetron Advanced\resources\included\gidaio\test-0.0.1.aacockpit.xml.
If anyone has a solution, the help would be much appreciated.
User avatar
DDMJ
Reverse Outside Corner Grinder
Posts: 1882
Joined: Thu Jun 08, 2006 12:15 am
Location: LA, CA, USA, NA
Contact:

Re: Cockpit Making Trouble!

Post by DDMJ »

--- Disclaimer ---
I have never worked with cockpit files, ever, so what follow may be 100% WRONG.

Gidaio wrote:I tried messing it up, intentionally creating errors, and Armagetron made no response, which leads me to believe that it's not loading the file. It's path is:

Code: Select all

C:\ProgramFiles\Armagetron Advanced\resources\included\gidaio\test-0.0.1.aacockpit.xml.
If anyone has a solution, the help would be much appreciated.
Try placing the file here:

Code: Select all

C:\Documents and Settings\<Your username>\Application Data\Armagetron Advanced\var\gidaio\\test-0.0.1.aacockpit.xml.
Notice the double \\ because you did not define the category in the xml file.

Code: Select all

<Resource type="aacockpit" name="test" version="0.0.1" author="Gidaio" category="">
To avoid that, just define a category and when you're loading it from the console in the game, you'll need to add that too:

Code: Select all

COCKPIT_FILE Gidaio/category/test-0.0.1.aacockpit.xml
Also notice that the author has to match (it's case-sensative), so you might have to adjust that as well.
User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1986
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Re: Cockpit Making Trouble!

Post by kyle »

DDMJ wrote:Try placing the file here:

Code: Select all

C:\Documents and Settings\<Your username>\Application Data\Armagetron Advanced\var\gidaio\\test-0.0.1.aacockpit.xml.
it's not a var it is a resource
So on XP

Code: Select all

C:\Documents and Settings\<Your username>\Application Data\Armagetron Advanced\resource\automatic\gidaio\\test-0.0.1.aacockpit.xml
Vista it gets a little crazyer something like

Code: Select all

C:\Users\<Your username>\Application Data\Roaming\Armagetron Advanced\resource\automatic\gidaio\\test-0.0.1.aacockpit.xml
but i don't think that is the problem

I think when you set camera="all" it should be camera="*"
I'm about 60% sure that could be the problem

You are using armagetron version 0.3.0 correct
Gidaio
Posts: 4
Joined: Tue Nov 25, 2008 3:21 am

Post by Gidaio »

All right, let's see... I changed the path camera="all"s to camera="*". Nothing changed, so I added a category. Still, nothing changed. I changed the folder so that it was an uppercase 'G,' as well as moving it to the 'AppData' folder (I run Vista), and I made sure I have 0.3.0, which I do. I've done everything you suggested, and still nothing works. Might it be my computer?

I do have one small question though: When in the 'resources' folder, do I put the file in the '...\resources\automatic' folder, or just in the '...\resources' folder?

In short, this is really starting to bug me. :x
epsy
Adjust Outside Corner Grinder
Posts: 2003
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Post by epsy »

Do any error show up? (press page up)
What revision are you using? Or are you even using 0.3.0 ?
Gidaio
Posts: 4
Joined: Tue Nov 25, 2008 3:21 am

Post by Gidaio »

Wait, where do I press 'page up?' After I type it into the console? Or in the XML file itself? Or somewhere else?

And yes, I am using 0.3.0.
epsy
Adjust Outside Corner Grinder
Posts: 2003
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Post by epsy »

Gidaio wrote:Wait, where do I press 'page up?' After I type it into the console? Or in the XML file itself? Or somewhere else?
In-game, once you've loaded the cockpit.
Gidaio wrote:And yes, I am using 0.3.0.
That may be too old.
User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1986
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Post by kyle »

I think that version goes with this tutorial
Gidaio
Posts: 4
Joined: Tue Nov 25, 2008 3:21 am

Post by Gidaio »

Thanks!! I found the errors. Turns out version 0.3.0 doesn't have a <MapMode/> element (At least, that's what it said).
epsy wrote:That may be too old.
Is there a later version I can get? If so, where?
epsy
Adjust Outside Corner Grinder
Posts: 2003
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Post by epsy »

Post Reply