weapon mounts do not accept weapons!

Need help testing contributed art or code or having trouble getting your newest additions into game compatible format? Confused by changes to data formats? Reading through source and wondering what the developers were thinking when they wrote something? Need "how-to" style guidance for messing with VS internals? This is probably the right forum.
Post Reply
GAlex
Mercenary
Mercenary
Posts: 126
Joined: Sun May 01, 2005 10:33 am
Location: Italia

weapon mounts do not accept weapons!

Post by GAlex »

just added my new ship to my local VS install to test and finetue it:

1. created directory under ...../units path;
2. copyed all standard files (bfxms, textures, hud image, spr file)
3. added ship in units.csv file (in .blank version)
4. added ship to masterpart_list (as to be able to buy/destroy my ship)

then... running VS:

OK I have my ship, with its right stats and I can fly it where I want. I can upgrade it buying all the necessary stuff, BUT I CANNOT BUY/INSTALL WEAPONS!!!

can't figure out what am I doing wrong, can You help me please?

sttached is the saved .csv zipped file
You do not have the required permissions to view the files attached to this post.
"Eppur si muove ..."
(Galileo Galilei just after abjuring to the Inquisition)
jackS
Minister of Information
Minister of Information
Posts: 1895
Joined: Fri Jan 31, 2003 9:40 pm
Location: The land of tenure (and diaper changes)

Post by jackS »

First thought is that you appear to have only 15 of the 17 fields for a weapon mount

{type(string);ammo(int);volume(meters^3);SIZE(string);x(meters);y(meters);z(meters);xyscale(meters);zscale(meters);forex(meters);forey(meters);forez(meters);upx(meters);upy(meters);upz(meters);functionality(percentage);maxfunctionality(percentage)}
GAlex
Mercenary
Mercenary
Posts: 126
Joined: Sun May 01, 2005 10:33 am
Location: Italia

Post by GAlex »

ehem... no, they are 17. I admit that the file attached is quite unreadable, since it's that present in the .vegastrike/serialized_xml dir, but they are 17.

the curious fact is that to test the ship, I've cloned a line from a standard ship (the dostojewsky) and adapted to my ship changing only the xyz of the first 7 mounts and deleting the last 2. obviously I've changed also masses and accelerations and some other things.

so why the dostojewsky is functioning and my ship not?
"Eppur si muove ..."
(Galileo Galilei just after abjuring to the Inquisition)
jackS
Minister of Information
Minister of Information
Posts: 1895
Joined: Fri Jan 31, 2003 9:40 pm
Location: The land of tenure (and diaper changes)

Post by jackS »

I still count 15 in the first mountpoint from what you posted
{;
-1;
0;
LIGHT MEDIUM;
-3.200000;
-0.100000;
6.200000;
0.000000;
0.000000;
0.000000;
0.000000;
1.000000;
0.000000;
1.000000;
0.000000}

could you post a copy of the line you inserted into units.csv rather than the serialized ship?
GAlex
Mercenary
Mercenary
Posts: 126
Joined: Sun May 01, 2005 10:33 am
Location: Italia

Post by GAlex »

you are right, in the serialized file there are only 15 values but this is true for every saved game (tested with a llama, try yourself).

however in the unit.csv mounts have 17 entries: attached is the line.

PLEASE HELP ME :cry: :cry: :cry: !
You do not have the required permissions to view the files attached to this post.
"Eppur si muove ..."
(Galileo Galilei just after abjuring to the Inquisition)
Post Reply