Adding planets

New planets

Ok so I'm adding a variety of new planets and I know its nothing wrong with the mesh files or textures as the new textures and meshes for original sins planets are working. So this is what I've done so far. Ive implemented the information for the galaxyscenario in (entitydefname etc). No minidumps. I've added the string information in. No minidumps. Created a galaxyforge map with the new planets in their. And it causes a minidump as soon as it attempts toload. No other minidumps occur throughout the hole mod and I have used original sins planets as the basis (only changes I've made is using new mesh and texture). I haven't added custom icons yet but I didn't think it would be a problem. Whats wrong? :)

6,588 views 18 replies
Reply #1 Top

planets go into 3 sections of the GSD, did you get them all?

planetType <-- update count
designName "Ice"
designStringId "IDSGalaxyScenarioTypePlanetIce"
orbitBodyTypeCount 1
orbitBodyType "Ice"

orbitBodyType <-- update count
typeName "Ice"
entityDefName "PlanetIce" <-- needs to also be in entity manifist0
defaultTemplateName "Template:DefaultStart_Ice"

and then a temp[late for militas

 

Reply #2 Top

are the new entities in the entity manifest?

harpo

 

Reply #3 Top

Everything is correct myfist0, as provided :)

yes they are harpo

Reply #5 Top

Slap the text up here so we can have a look at it =3

I'm better with seeing and doing instead of inform and change =p

Reply #6 Top

These are the strings:

 

StringInfo  ID "IDSGalaxyScenarioTypePlanetHydrocarbon_A"  

Value "Planet Hydrocarbon"

StringInfo  ID "IDSGalaxyScenarioTypePlanetCarbon_A"  

Value "Planet Carbon"

StringInfo  ID "IDSGalaxyScenarioTypePlanetRock_A"

 Value "Planet Barrren"

StringInfo  ID "IDSGalaxyScenarioTypePlanetOceanic_A"  

Value "Planet Oceanic"

StringInfo  ID "IDSGalaxyScenarioTypePlanetForest_A"  

Value "Planet Forest" 

 

 

*******

 

StringInfo  ID "IDS_PLANETTYPE_HYDROCARBON"  

Value "Hydrocarbon Planet"

StringInfo  ID "IDS_PLANETTYPE_CARBON"

 Value "Carbon Planet" StringInfo  ID

"IDS_PLANETTYPE_FOREST"

 Value Forest Planet"

StringInfo  ID "IDS_OCEANIC"  

Value "Oceanic Planet"

StringInfo  ID "IDS_PLANETTYPE_ROCK"  

Value "Barren Planet"

 

 

 

 

These are the GalaxyScenario lines:

 

planetTypeCount 58

planetType  

designName "Hydrocarbon"  

designStringId "IDSGalaxyScenarioTypePlanetHydrocarbon_A"

 orbitBodyTypeCount 1

 orbitBodyType "Hydrocarbon"

planetType  designName "Carbon"  

designStringId "IDSGalaxyScenarioTypePlanetCarbon_A"  

orbitBodyTypeCount 1  

orbitBodyType "Carbon"

planetType  

designName "Barren"

designStringId "IDSGalaxyScenarioTypePlanetRock_A"

 orbitBodyTypeCount 1

 orbitBodyType "Rock"

planetType  

designName "Oceanic"  

designStringId "IDSGalaxyScenarioTypePlanetOceanic_A"

 orbitBodyTypeCount 1  

orbitBodyType "Oceanic"

planetType  

designName "Forest"  

designStringId "IDSGalaxyScenarioTypePlanetForest_A"  

orbitBodyTypeCount 1  

orbitBodyType "Forest"

 

 

*******

 

 

orbitBodyTypeCount 36

orbitBodyType   

typeName "Hydrocarbon"  

entityDefName "PlanetHydrocarbon"  

defaultTemplateName "Template:DefaultStart_Volcanic"

 orbitBodyType   

typeName "Carbon"

entityDefName "PlanetCarbon"  

defaultTemplateName "Template:DefaultStart_Volcanic"

orbitBodyType   

typeName "Rock"  

entityDefName "PlanetRock"  

defaultTemplateName "Template:DefaultStart_Desert"

orbitBodyType   

typeName "Oceanic"  

entityDefName "PlanetOceanic"  

defaultTemplateName "Template:DefaultStart_Terran"

orbitBodyType   

typeName "Forest"  

entityDefName "PlanetForest"  

defaultTemplateName "Template:DefaultStart_Terran"

 

 

 

This is the Hydrocarbon file:

 

meshInfoCount 5

meshInfo  

typeNameStringID "IDS_PLANETTYPE_HYDROCARBON"  

asteroidTemplate "Empty"  

dustCloudTemplate "Sparse"  

meshName "Planet_Hydrocarbon_0"  

cloudColor ffe7c362  

nullMeshRadius 0.000000  

nullMeshParticleEffect ""  

hudIcon "HUDICON_PLANET_DESERT0"  

smallHudIcon "HUDICONSMALL_PLANET_DESERT0"  

infoCardIcon "INFOCARDICON_PLANET_DESERT0"  

mainViewIcon "MAINVIEWICON_PLANET_DESERT0"  

undetectedMainViewIcon "MAINVIEWUNDETECTEDICON_PLANET_DESERT0"  

picture "PICTURE_PLANET_DESERT0"  

shouldPrefer FALSE

 

 

 

 

 

Reply #7 Top

Ok so I narrowed it down to being something with the Galaxyscenario files. There appears to be something wrong with the "typeName" line. When I changed it to having 'Planet' in front of the planet type i.e "Planet Hydrocarbon" the map would work but there would be no planet in the map. It minidumps when it is just Hydrocarbon.

 

I have no idea what the "typeName" line is referring too and how to work towards fixing it. Any guidance would be much appreciated.

Reply #8 Top

Quoting Amahut, reply 7

Ok so I narrowed it down to being something with the Galaxyscenario files. There appears to be something wrong with the "typeName" line. When I changed it to having 'Planet' in front of the planet type i.e "Planet Hydrocarbon" the map would work but there would be no planet in the map. It minidumps when it is just Hydrocarbon.

 

I have no idea what the "typeName" line is referring too and how to work towards fixing it. Any guidance would be much appreciated.
End of Amahut's quote

Again, there are two sections you need to edit in the GSD, and I'm not sure what you're talking about with just that.

In the orbit type, you need to give it a name you'll use in the rest of the GSD, and in the entityTypeName it needs to be the name of the planet's .entity file.

In the PlanetType area, you're defining the type of planets used by the maps (I.e. the things you see if you use the galaxy forge). These can just be one planet, but you can also define the random planet lists here. In this section you use the name you defined in that planet's Orbit body type section. You must do the orbit body section first, otherwise it will crash the planet body section. And if you don't do the planet body section, the planet will never appear in maps.

Also keep in mind the GSD is one of the pickiest files in the game. One tiny mistake like being 1 off on a count will dump your game.

Reply #9 Top

Hmm, I never used the default start templates for added planets, not sure if it causes any issues, but I would pick one of the plain Militia templates.

Yes I do remember an issue not adding planet to Forest making it PlanetForest

Hope that's a copy paste error

Value "Carbon Planet" StringInfo  ID

Reply #12 Top

I am seriously about to give up. I have tried everything. Different text combinations and all sorts. Using different names etc. The GalaxyScenarioDef file just doesn't seem to read the new planet. Is there something that needs to be added elsewhere? Does the entity name have be something different other than just "PlanetCarbon" etc? It's pissing me off to no end. BTW its on Rebellion but I don't think that should interfere at all.

Reply #13 Top

Quoting Amahut, reply 12

I am seriously about to give up. I have tried everything. Different text combinations and all sorts. Using different names etc. The GalaxyScenarioDef file just doesn't seem to read the new planet. Is there something that needs to be added elsewhere? Does the entity name have be something different other than just "PlanetCarbon" etc? It's pissing me off to no end. BTW its on Rebellion but I don't think that should interfere at all.
End of Amahut's quote

I don't think you're quite getting what we're saying. The design name doesn't matter (though you must be consistent within the GSD), but the entity name must be the name of the planet entity. If "PlanetCarbon" is the name of your entity file that is the name, if not use the entity name.

Also, is the game crashing or it just does not appear (and how are you checking to see if it does appear?).

Reply #14 Top

There is something seriously wrong here. It will not work no matter what. The name doesn't register properly. I check by fiddling around then going in game etc.

The entity name is how it is supposed to be but it just minidumps everytime the map attempts to load with that specific planet in it. 

Reply #15 Top

Quoting Amahut, reply 14

There is something seriously wrong here. It will not work no matter what. The name doesn't register properly. I check by fiddling around then going in game etc.

The entity name is how it is supposed to be but it just minidumps everytime the map attempts to load with that specific planet in it. 
End of Amahut's quote

Did you try running the game in the dev.exe, to see if you get an error message? That definitely sounds like it can not find the planet entity file, or you did something with that particular planet template that is not allowed.

Reply #16 Top

I'm gonna try investigating the entity file, rework it and see if that fixes it. The mod is currently in alpha stage so when I run it in dev.exe it gives me about 200 error messages.

Reply #17 Top

So I've managed to trick the game into using the PlanetFair types as a basis. Still confused as to what was wrong as it was unlikely it had anything to do with the mesh, entity, texture or string file.

Reply #18 Top

Quoting Amahut, reply 16
I'm gonna try investigating the entity file, rework it and see if that fixes it. The mod is currently in alpha stage so when I run it in dev.exe it gives me about 200 error messages.
End of Amahut's quote

Well that's a problem, if for no other reason than it keeps you from seeing the real errors. There are a few modding tricks that will generate a few error messages despite being legitimate, but you should not get more than a handful, especially during mod/game load.