TomatoesYay
Chieftain
- Joined
- Apr 10, 2015
- Messages
- 30
Hi everyone!
I'm new to modding civ, so for my first mod I'm just using other people's mods and messing around with them just for learning purposes, I'm not going to plagiarize and release someone else's work
But I'm having some trouble with the models for improvements. I have the code for an improvement model to show up, but I'm also trying to see if I can use a .gr2 model from Age of Empires (since pretty much the whole game uses .gr2 models
) but their models have a texture path to a .ddt file, which I converted to a .dds file.
So I tried importing the file into the game (I have VFS set to true and the reloads all checked), here is the code for the improvement (NOTE: This is from CL's Inuit mod, I'm only using it to test out if I can put AoE models into the game) fxsxml:
And here's the SQL file:
But when I'm playing the game, the model doesn't appear at all!
What am I doing wrong?
Also, when I try to import the model into nexus buddy, this error occurs:
But granny viewer can view the model just fine.
I'm new to modding civ, so for my first mod I'm just using other people's mods and messing around with them just for learning purposes, I'm not going to plagiarize and release someone else's work

But I'm having some trouble with the models for improvements. I have the code for an improvement model to show up, but I'm also trying to see if I can use a .gr2 model from Age of Empires (since pretty much the whole game uses .gr2 models

So I tried importing the file into the game (I have VFS set to true and the reloads all checked), here is the code for the improvement (NOTE: This is from CL's Inuit mod, I'm only using it to test out if I can put AoE models into the game) fxsxml:
<Asset>
<Mesh file="china_waracademy_age2.gr2" source="Max" />
<Texture file="china_waracademy_age2.dds" source="Max" />
</Asset>
And here's the SQL file:
INSERT INTO ArtDefine_LandmarkTypes(Type, LandmarkType, FriendlyName)
SELECT 'ART_DEF_IMPROVEMENT_INUUIT_INUKSHUK', 'Improvement', 'INUUIT_INUKSHUK';
INSERT INTO ArtDefine_Landmarks(Era, State, Scale, ImprovementType, LayoutHandler, ResourceType, Model, TerrainContour)
SELECT 'Any', 'UnderConstruction', 0.22, 'ART_DEF_IMPROVEMENT_INUUIT_INUKSHUK', 'SNAPSHOT', 'ART_DEF_RESOURCE_ALL', 'inukshuk_hb.fxsxml', 1 UNION ALL
SELECT 'Any', 'Constructed', 1.0, 'ART_DEF_IMPROVEMENT_INUUIT_INUKSHUK', 'RANDOM', 'ART_DEF_RESOURCE_ALL', 'inukshuk01.fxsxml', 1 UNION ALL
SELECT 'Any', 'Constructed', 1.0, 'ART_DEF_IMPROVEMENT_INUUIT_INUKSHUK', 'RANDOM', 'ART_DEF_RESOURCE_ALL', 'inukshuk01.fxsxml', 1 UNION ALL
SELECT 'Any', 'Constructed', 1.0, 'ART_DEF_IMPROVEMENT_INUUIT_INUKSHUK', 'RANDOM', 'ART_DEF_RESOURCE_ALL', 'inukshuk01.fxsxml', 1 UNION ALL
SELECT 'Any', 'Pillaged', 0.22, 'ART_DEF_IMPROVEMENT_INUUIT_INUKSHUK', 'SNAPSHOT', 'ART_DEF_RESOURCE_ALL', 'inukshuk_pl.fxsxml', 1;
INSERT INTO ArtDefine_StrategicView(StrategicViewType, TileType, Asset)
SELECT 'ART_DEF_IMPROVEMENT_INUUIT_INUKSHUK', 'Improvement', 'sv_inukshuk.dds';
But when I'm playing the game, the model doesn't appear at all!

Also, when I try to import the model into nexus buddy, this error occurs:
Unhandled exception has occured in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately. Specified cast is not valid.
But granny viewer can view the model just fine.