Ship Types Trying to add
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
-
- Posts: 46
- Joined: Sat, 13. Oct 18, 12:24
Ship Types Trying to add
So ive been looking into the files and for the life of me i cant find where the ship macros reference the ship types from the t files.
They have a ship type entry but that usually says scout or heavyfigher etc.
Ive tried adding my own ship type enhancedscout with an entry into the t file page 20221 titled Ship Types Enhanced Scout, but in game that leaves a blank behind the ship, as in no type. so thats not working.
Ive tried looking for another file that cross references scout with {"20221,2001"} which is Scout in the t file. Im not having any luck.
They have a ship type entry but that usually says scout or heavyfigher etc.
Ive tried adding my own ship type enhancedscout with an entry into the t file page 20221 titled Ship Types Enhanced Scout, but in game that leaves a blank behind the ship, as in no type. so thats not working.
Ive tried looking for another file that cross references scout with {"20221,2001"} which is Scout in the t file. Im not having any luck.
-
- Posts: 6
- Joined: Mon, 2. Dec 13, 03:03
Re: Ship Types Trying to add
I'm looking for the same thing, any luck?
Re: Ship Types Trying to add
Hard coded afaik.
Re: Ship Types Trying to add
I had search and not find. Other modders, more skilled than me, released new ship that should had been tagged as cruiser, but they are destroyer in game. Probably if they had the possibility to change it they would had. Roughly if it has not be done it is probably because it is not possible.
-
- Posts: 46
- Joined: Sat, 13. Oct 18, 12:24
Re: Ship Types Trying to add
I dont know about hard coded seems a weird thing to be done that way considering there is a part of the t file that has ship types page id ="20221"
Ive tested it with bomber and destroyer both of which are in that 'ship types', id="3001" and "4001" respectively, but I gather anything that is in there should work.
Its just that adding anything into it doesn't seem to then allow it to be a ship type.
Edit: mostly because i cant find a way to tie in the macro files <ship type="enhancedscout"/> to the added <diff> <page id="20221" title="Ship Types" descr="0" voice="yes"> <t id="5071">Enhanced Scout</t> </page> </diff>
even though <ship type="destroyer" /> or <ship type="bomber" /> both work
Im not sure but Tug and Compactor werent in the file before the newest dlc so adding in new ship types seems possible
Ive tested it with bomber and destroyer both of which are in that 'ship types', id="3001" and "4001" respectively, but I gather anything that is in there should work.
Its just that adding anything into it doesn't seem to then allow it to be a ship type.
Edit: mostly because i cant find a way to tie in the macro files <ship type="enhancedscout"/> to the added <diff> <page id="20221" title="Ship Types" descr="0" voice="yes"> <t id="5071">Enhanced Scout</t> </page> </diff>
even though <ship type="destroyer" /> or <ship type="bomber" /> both work
Im not sure but Tug and Compactor werent in the file before the newest dlc so adding in new ship types seems possible
Re: Ship Types Trying to add
Yeah, it's possible if you have access to the hard coded section. A t file entry isn't the same as hard coded classes in script properties btw.
Hopefully you can prove me wrong.
Hopefully you can prove me wrong.
-
- Posts: 46
- Joined: Sat, 13. Oct 18, 12:24
Re: Ship Types Trying to add
It is kinda frustrating tbh. Ive looked through as many files as i can in libaries, md, even the t files, I really cant find anything that connects <ship type="personalvehicle"/> to the entry in <page id=20221" title="Ship Types"> <t id="1001">Personal Vehicle</t>
As an interesting side note, you can have a ship type of Personal Vehicle, Distress Drone, or Laser Tower.
Ive even tried just having it look to the t file for the ship type by inputting <ship type="{20221, 1001}"/> into the macro and that comes up as a blank as well
As an interesting side note, you can have a ship type of Personal Vehicle, Distress Drone, or Laser Tower.
Ive even tried just having it look to the t file for the ship type by inputting <ship type="{20221, 1001}"/> into the macro and that comes up as a blank as well
- Lord Dakier
- Posts: 3243
- Joined: Fri, 8. Dec 06, 13:45
Re: Ship Types Trying to add
Drop a PM to one of the devs and ask the question. It was always hardcoded prior to X4 though.
Re: Ship Types Trying to add
Be nice if they allowed you to add ship types to the game, I do not understand locking something like that up.
I thought back in the X2 - X3 days people added new ship types. Like the M0 and bombers and such. I was pretty sure that there was a huge mod, X-tended, that did that. But they might have been working with EGO to do it.
I thought back in the X2 - X3 days people added new ship types. Like the M0 and bombers and such. I was pretty sure that there was a huge mod, X-tended, that did that. But they might have been working with EGO to do it.
Re: Ship Types Trying to add
Ahhh, Been a while for me. Though, locking something behind a code wall makes little sense to me, I am sure they have reasons. But allowing the community to add ship classes and such wouldn't be too horrible, I mean they could just do it in a subclass sort of way. Like a sub class of battleship called battle cruiser, where if something is missing it defaults back to the battleship classification to figure out how to handle something.
This way you could have different variations of ship classes or even drones/whatever you want, while not really messing with anything.
Re: Ship Types Trying to add
Agreed on making little sense to lock it down. Personally would love to see an overhaul bringing back the old X3 classes, I always hated the size thingy in X4, it's so bloody uninformative.siath70 wrote: ↑Tue, 3. May 22, 14:50Ahhh, Been a while for me. Though, locking something behind a code wall makes little sense to me, I am sure they have reasons. But allowing the community to add ship classes and such wouldn't be too horrible, I mean they could just do it in a subclass sort of way. Like a sub class of battleship called battle cruiser, where if something is missing it defaults back to the battleship classification to figure out how to handle something.
This way you could have different variations of ship classes or even drones/whatever you want, while not really messing with anything.
Then again, X4 doesn't have the sheer size of modding availability as X3 did like Fallout 4 was lame compared to FO3 and FNV, or Skyrim AE/SSE vs Oldrim, etc. So we'll never see as many or as massive overhauls like there were in x3.
Re: Ship Types Trying to add
There is a mod, dunno if you use them, I assume yes. It's called Better target monitorSturmer wrote: ↑Tue, 3. May 22, 16:11Agreed on making little sense to lock it down. Personally would love to see an overhaul bringing back the old X3 classes, I always hated the size thingy in X4, it's so bloody uninformative.siath70 wrote: ↑Tue, 3. May 22, 14:50Ahhh, Been a while for me. Though, locking something behind a code wall makes little sense to me, I am sure they have reasons. But allowing the community to add ship classes and such wouldn't be too horrible, I mean they could just do it in a subclass sort of way. Like a sub class of battleship called battle cruiser, where if something is missing it defaults back to the battleship classification to figure out how to handle something.
This way you could have different variations of ship classes or even drones/whatever you want, while not really messing with anything.
Then again, X4 doesn't have the sheer size of modding availability as X3 did like Fallout 4 was lame compared to FO3 and FNV, or Skyrim AE/SSE vs Oldrim, etc. So we'll never see as many or as massive overhauls like there were in x3.
https://steamcommunity.com/sharedfiles/ ... 2042920500
It actually shows on the monitor the old naming system, like TS, M0, and such.
- Lord Dakier
- Posts: 3243
- Joined: Fri, 8. Dec 06, 13:45
Re: Ship Types Trying to add
It wasn't possible to change the classes in the older games as far as I remember. The classes changed in X3TC, but that was down to Egosoft, pretty sure it's always been hardcoded.Sturmer wrote: ↑Tue, 3. May 22, 16:11Agreed on making little sense to lock it down. Personally would love to see an overhaul bringing back the old X3 classes, I always hated the size thingy in X4, it's so bloody uninformative.siath70 wrote: ↑Tue, 3. May 22, 14:50Ahhh, Been a while for me. Though, locking something behind a code wall makes little sense to me, I am sure they have reasons. But allowing the community to add ship classes and such wouldn't be too horrible, I mean they could just do it in a subclass sort of way. Like a sub class of battleship called battle cruiser, where if something is missing it defaults back to the battleship classification to figure out how to handle something.
This way you could have different variations of ship classes or even drones/whatever you want, while not really messing with anything.
Then again, X4 doesn't have the sheer size of modding availability as X3 did like Fallout 4 was lame compared to FO3 and FNV, or Skyrim AE/SSE vs Oldrim, etc. So we'll never see as many or as massive overhauls like there were in x3.
I actually prefer the newer system, it just needs to be expanded so you have cruisers, missile frigates, etc...
-
- Posts: 6
- Joined: Mon, 2. Dec 13, 03:03
Re: Ship Types Trying to add
One area that may be worth a search is the UI files. If you take a look at defaults.xml where it defines ship_s:
You'll notice a property a few lines down called identification with an attribute "type":
I had asked a question about this recently, and someone had told me that it was a UI attribute. I've recently created my own ship classes, and searched high and low for a reference to shiptypes_s, but never found one. I may have been looking in the wrong places though. I have absolutely no experience fiddling with the UI files whatsoever, and so I never searched them. It might be worth a try!
Code: Select all
<dataset class="ship_s">
Code: Select all
<identification type="shiptypes_s" />