Games not loading models
Moderator: Moderators
- The_Igishly_Co
- Posts: 34
- Joined: 10 Oct 2013, 01:56
Games not loading models
Hello again,
Sorry to intrude again, but we've hit a snag here at TIG HQ... I have successfully turned my 3D model into a .s30 file. However, when i load the game (even the test game just to make sure it wasn't my coding) no game 3D models are loaded... I am wondering as to why this is. If you have any answers or assistance at all. We here at The Igishly Company would be greatly appreciative.
-Signed: The Igishly Company
Sorry to intrude again, but we've hit a snag here at TIG HQ... I have successfully turned my 3D model into a .s30 file. However, when i load the game (even the test game just to make sure it wasn't my coding) no game 3D models are loaded... I am wondering as to why this is. If you have any answers or assistance at all. We here at The Igishly Company would be greatly appreciative.
-Signed: The Igishly Company
- Attachments
-
- infolog.txt
- My infolog, I went over it myself, nothing directly related to my problem, but I've got faith that you guys can find something
- (8.08 KiB) Downloaded 28 times
Last edited by The_Igishly_Co on 11 Oct 2013, 18:18, edited 1 time in total.
Re: Games not loading models
It's usually helpful to post your infolog.txt.
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: Games not loading models
Did you mean s3o ?
Maybe worth attaching your file as well...
Maybe worth attaching your file as well...
Re: Games not loading models
If you load an unedited spring game, that works?
if not: http://springrts.com/wiki/Infolog.txt and a screenshot
If only your own 3d models fail to show, check this page:
http://springrts.com/wiki/Trouble-shoot ... sible_Unit
if not: http://springrts.com/wiki/Infolog.txt and a screenshot
If only your own 3d models fail to show, check this page:
http://springrts.com/wiki/Trouble-shoot ... sible_Unit
Re: Games not loading models
Your model has to be mentioned in the unitdef
Also if the error persists.. post the model.. or at least a screenshot of how it is loaded in upspring?
http://springfiles.com/spring/tools/upspring
Do not despair, deving is hard and slow at the start. But becomes wonderfull if you stick to it.
Also if the error persists.. post the model.. or at least a screenshot of how it is loaded in upspring?
http://springfiles.com/spring/tools/upspring
Do not despair, deving is hard and slow at the start. But becomes wonderfull if you stick to it.
Re: Games not loading models
Does the model have a texture2 applied in Upspring? if so be aware that alpha channel is 1-bit transparency.
- The_Igishly_Co
- Posts: 34
- Joined: 10 Oct 2013, 01:56
Re: Games not loading models
Okay, when I say the game is not loading models, I meant that the game is not loading objects. And when I load a game that is supposed to have a basic tank model in game. There is in fact nothing there except the map... How do I get this fixed, my infotext file is in the original post.
Re: Games not loading models
Does
"/cheat"
followed by
"/give all"
Spawn any units?
"/cheat"
followed by
"/give all"
Spawn any units?
Re: Games not loading models
Those are not map/games where I would be 100% certain that they work.[f=0000000] Using map: Mamap 1.8
[f=0000000] Using game: Empty Mod plus Tank
Map I have never seen (is it yours?) and the game is some example-game but not 100% sure if it works, it is a bit old.
Try this game http://springfiles.com/spring/games/bal ... ilation-43 on this map http://springfiles.com/spring/spring-maps/smalldivide just to be sure that your spring install works.
Broken map/gadget? Is that your map?[f=0000000] Error: Failed to load: precipitation.lua ([string "LuaGaia/Gadgets/precipitation.lua"]:54: Precipitation-Gadget: Can't find settings in mapinfo.lua!)
- The_Igishly_Co
- Posts: 34
- Joined: 10 Oct 2013, 01:56
Re: Games not loading models
Dear helpful chap in the front,FLOZi wrote:Does
"/cheat"
followed by
"/give all"
Spawn any units?
YES, thank you SO much... It spawned the unit and I am a happy happy little boy! Thank you once again! And is there any way that I ca make it so that it's there by default?
Re: Games not loading models
you need a lua script. in your game it is called "spawnplayer.lua" and in luarules\gadgets, but for some reason it does not work..And is there any way that I ca make it so that it's there by default?
- The_Igishly_Co
- Posts: 34
- Joined: 10 Oct 2013, 01:56
Re: Games not loading models
Is there a working script out there that I can use?knorke wrote:but for some reason it does not work..
- The_Igishly_Co
- Posts: 34
- Joined: 10 Oct 2013, 01:56
Re: Games not loading models
And in the game is the spawn function called?knorke wrote:you need a lua script. in your game it is called "spawnplayer.lua" and in luarules\gadgets, but for some reason it does not work..And is there any way that I ca make it so that it's there by default?
Re: Games not loading models
Was that the example download from http://springrts.com/wiki/The_Complete_ ... pring_Game ?
Those are a bit outdated, I will add warning to wiki.
Think problem is that the script tries to read team data of player but in testgames via spring.exe that is not set or something.
Basically what line 47 in this spawnscript does http://code.google.com/p/springtutorial ... awn.lua#47
Quick fix could be to delete this
and just specify the unit directly like this:
Spring.CreateUnit("tank",sx,sy,sz,0,t)
("tank" = put name of your unit)
(also remove the if unitname ... end)
Or just use this as a base, it should work: http://springrts.com/wiki/SpringTutorialGame
Those are a bit outdated, I will add warning to wiki.
Think problem is that the script tries to read team data of player but in testgames via spring.exe that is not set or something.
Basically what line 47 in this spawnscript does http://code.google.com/p/springtutorial ... awn.lua#47
Quick fix could be to delete this
Code: Select all
local _,_,_,ai,faction = Spring.GetTeamInfo(t)
local unitname = Spring.GetSideData(faction)
Spring.CreateUnit(unitname,sx,sy,sz,0,t)
Spring.CreateUnit("tank",sx,sy,sz,0,t)
("tank" = put name of your unit)
(also remove the if unitname ... end)
Or just use this as a base, it should work: http://springrts.com/wiki/SpringTutorialGame
- The_Igishly_Co
- Posts: 34
- Joined: 10 Oct 2013, 01:56
Re: Games not loading models
You mind just posting a .png of a working script? Or a not as out dated one? (Yes, I used the outdated tutorial base)knorke wrote:Was that the example download from http://springrts.com/wiki/The_Complete_ ... pring_Game ?
Those are a bit outdated, I will add warning to wiki.
Think problem is that the script tries to read team data of player but in testgames via spring.exe that is not set or something.
Basically what line 47 in this spawnscript does http://code.google.com/p/springtutorial ... awn.lua#47
Quick fix could be to delete thisand just specify the unit directly like this:Code: Select all
local _,_,_,ai,faction = Spring.GetTeamInfo(t) local unitname = Spring.GetSideData(faction) Spring.CreateUnit(unitname,sx,sy,sz,0,t)
Spring.CreateUnit("tank",sx,sy,sz,0,t)
("tank" = put name of your unit)
(also remove the if unitname ... end)
Or just use this as a base, it should work: http://springrts.com/wiki/SpringTutorialGame
Re: Games not loading models
why a .png? we can post scripts here just fine.you are aware all spring projects can be viewed? Any sdz/sd7 can be opened in seven zip. If you are using the rapid system go on spring files and you will find the sdz/sd7 files there if you need examples :)
- FireStorm_
- Posts: 666
- Joined: 19 Aug 2009, 16:09
Re: Games not loading models
Code: Select all
function gadget:GetInfo()
return {
name = "Super Simple Gadget to the rescue",
desc = "creates a neutral unit at centre of map",
author = "some person",
date = "2013",
license = "yes please",
layer = 8,
enabled = true
}
end
if (not gadgetHandler:IsSyncedCode()) then
return false
end
function gadget:GameStart()
local gaiaID = Spring.GetPlayerTeamID()
CreateUnit("builder1", (Game.mapSizeX/2), 0, Game.mapSizeX/2, "south", gaiaID)
CreateUnit("tank1", (Game.mapSizeX/2)+100, 0, Game.mapSizeX/2, "south", gaiaID)
end
I think one can't have enough simple examples in the beginning.
I don't have any prior code experience before spring, so I still struggle with a lot of things that are probably obvious to others.
(note that this makes the units neutral, and un-commandable by player) I may have made a mistake but am a bit in a hurry

side note:
(how could a calm period have killed a foundation stone like the Q&A... ?)
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Games not loading models
Why not just use game_spawn.lua??
https://code.google.com/p/evolutionrts/ ... _spawn.lua
^^ Spawns your initial unit and sets storage levels. Problem solved
https://code.google.com/p/evolutionrts/ ... _spawn.lua
^^ Spawns your initial unit and sets storage levels. Problem solved

Re: Games not loading models
FireStorm_ :
local gaiaID =Spring.GetPlayerTeamID() Spring.GetGaiaTeamID
CreateUnit
Spring.CreateUnit
Btw the linked example spawn scripts are same as the one that is included with spring as an example in folder spring-94.1\base\springcontent.sdz\LuaGadgets\Gadgets\
local gaiaID =
CreateUnit

Btw the linked example spawn scripts are same as the one that is included with spring as an example in folder spring-94.1\base\springcontent.sdz\LuaGadgets\Gadgets\
- FireStorm_
- Posts: 666
- Joined: 19 Aug 2009, 16:09
Re: Games not loading models
Thanks knorke
(and a general sorry)
Next time i'll try to remember to take the time needed to help properly
(and a general sorry)
Next time i'll try to remember to take the time needed to help properly
