ItsMods

Full Version: [SOLVED]Kar98k error while building mod
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Shouldnt texture file be .iwi iinstead .dds ?
(07-29-2011, 21:31)deadcrayon Wrote: [ -> ]Looks like its not making the material, shouldn't you be using .tga files for colormap?
What do u mean? convert the .dds to .tga. Here are the materials at hypershade.
[Image: asgas.png]


(07-29-2011, 21:37)OrangePL Wrote: [ -> ]Shouldnt texture file be .iwi iinstead .dds ?

Dunno i when i exported the model i got only the lod01 and also the .dds file.

I forgot to ask if someone knows what's that generated .html page for?
[Image: asgasgas.png]
Thanks!!
More information relating to materials at the generated weapon_ger_kar98_rifle_LOD01.mtl. Any idea?

newmtl mtl_weapon_kar98
illum 4
Kd 0.00 0.00 0.00
Ka 0.00 0.00 0.00
Tf 1.00 1.00 1.00
map_Kd ../images/weapon_kar98_c.dds
Ni 1.00

newmtl mtl_weapon_kar98_wood
illum 4
Kd 0.00 0.00 0.00
Ka 0.00 0.00 0.00
Tf 1.00 1.00 1.00
map_Kd ../images/weapon_kar98_c.dds
Ni 1.00
When you create the material in asset manager, it has to be tga for colormap because tga is r8g8b8 and dds is not.


I could be wrong, but I always use tga files for colormap in asset manager.
(07-29-2011, 22:32)deadcrayon Wrote: [ -> ]When you create the material in asset manager, it has to be tga for colormap because tga is r8g8b8 and dds is not.


I could be wrong, but I always use tga files for colormap in asset manager.
Bingo!!! Thanks.
Code:
Updating timestamps...done
Converting 1 assets, reason: 'missing cache entry'
Converting pc specific 'mtl_weapon_kar98_wood1' (material 1 of 1)...
Converting 1 assets, reason: 'entry changed'
Converting 'mtl_weapon_kar98_wood1' (material 1 of 1)...


Conversion done. Hit key to continue.



I put this on my mod.csv, no compiling errors but when loading the mod in game it crash.
Code:
sound,default_mymod
xmodel,weapon_kar98k_mp
xmodel,viewmodel_kar98k_mp
weapon,mp\mosin_sp
weapon,mp\kar98k_mp
weapon,mp\tokarevtt30_sp
rawfile,myWhitelist.cfg

[Image: asgags.png]

Got it, i can see now at asset viewer correctly, but game is crashing when loading the mod. Can someone explain please? Thanks

Also there is any form to read the crash error? i got blackscreen
go to the console (hit ~)
type /g_logsync 1
type /logfile 1
restart mod
check the games_mp.log in your mod directory
Got it working, but not as expected xD. I created an images folder inside the main folder of my mod and then it didnt give any problem loading the mod. Hope i can fix the scale of the gun because is too small...

[Image: kar98.png]
Finally i have my kar98k Big Grin, the problem was a setting at xmodel exporter to make the models bigger
[Image: sagasg.png]

[Image: asashash.png]
Pages: 1 2