Games not loading models - Page 2

Games not loading models

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Re: Games not loading models

Post by FLOZi »

Quickest way if you don't intend to change how units are spawned is;
1. Make a new .lua file under LuaRules/Gadgets/

2. Put this in it

Code: Select all

return include("luagadgets/gadgets/game_spawn.lua")
User avatar
The_Igishly_Co
Posts: 34
Joined: 10 Oct 2013, 01:56

Re: Games not loading models

Post by The_Igishly_Co »

The following is my error report from launching the Knorke game, with my own custom models of course...
Attachments
infolog.txt
FUNC_VEHICLE
(9.07 KiB) Downloaded 4 times
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Games not loading models

Post by smoth »

it is all here in the document. here is what you need to look at.
[f=0000000] [unitdefs.lua] Error: removed simplefactory unitDef, missing model file (jux_factory.s3o)
[f=0000000] [unitdefs.lua] Error: removed the "simplefactory" entry from the "buildervehicle" build menu
odds are your model is not in /objects3d/
[f=0000000] Error: LuaRules::RunCallIn: error = 2, GameStart, [string "LuaRules/Gadgets/game_spawn.lua"]:71: [CreateUnit()]: bad unitDef name: simplefactory
stack traceback:
[C]: in function 'CreateUnit'
[string "LuaRules/Gadgets/game_spawn.lua"]:71: in function 'SpawnStartUnit'
[string "LuaRules/Gadgets/game_spawn.lua"]:113: in function 'GameStart'
[string "LuaGadgets/gadgets.lua"]:932: in function <[string "LuaGadgets/gadgets.lua"]:930>
User avatar
The_Igishly_Co
Posts: 34
Joined: 10 Oct 2013, 01:56

Re: Games not loading models

Post by The_Igishly_Co »

smoth wrote:it is all here in the document. here is what you need to look at.
[f=0000000] [unitdefs.lua] Error: removed simplefactory unitDef, missing model file (jux_factory.s3o)
[f=0000000] [unitdefs.lua] Error: removed the "simplefactory" entry from the "buildervehicle" build menu
odds are your model is not in /objects3d/
[f=0000000] Error: LuaRules::RunCallIn: error = 2, GameStart, [string "LuaRules/Gadgets/game_spawn.lua"]:71: [CreateUnit()]: bad unitDef name: simplefactory
stack traceback:
[C]: in function 'CreateUnit'
[string "LuaRules/Gadgets/game_spawn.lua"]:71: in function 'SpawnStartUnit'
[string "LuaRules/Gadgets/game_spawn.lua"]:113: in function 'GameStart'
[string "LuaGadgets/gadgets.lua"]:932: in function <[string "LuaGadgets/gadgets.lua"]:930>
PROBLEM SOLVED, thank you SO much, all of you! ;)
-Lots o' love: The Igishly Company
Post Reply

Return to “Game Development”