Page 4 of 4
Re: I need thies unit bases.
Posted: 21 Sep 2014, 13:41
by Silentwings
@Jools: Didn't read the code, but that error message is not missing () - that would be a syntax error. Likely there are no loadscreens so math.random has been given an empty set from which to choose a random loadscreen. It is unrelated to whether or not a unit spawns at GameStart.
Re: I need thies unit bases.
Posted: 21 Sep 2014, 13:45
by Jools
I didn't read the code either, but I didn't find anything else that could cause nospawn.
Re: I need thies unit bases.
Posted: 21 Sep 2014, 13:47
by Silentwings
A widget error in luaintro is not related to spawning (as said above).
The likely cause of nothing spawning (as was said above in
http://springrts.com/phpbb/viewtopic.ph ... 40#p561459) is a missing unit.
Code: Select all
[f=0000000] Loading Unit Definitions
[f=0000000] Error: Couldn't find WeaponDef NOWEAPON and explodeAs for cube is missing!
[f=0000000] Error: Couldn't find WeaponDef NOWEAPON and selfDestructAs for cube is missing!
Does the examplemod have a maintainer?
http://springrts.com/phpbb/viewtopic.ph ... 67#p561467
Re: I need thies unit bases.
Posted: 22 Sep 2014, 11:19
by knorke
Spring crashing:
Look at around at
http://springrts.com/wiki/FAQ:trouble or ask in Help & Bugs forum.
Put "safemode" values to all settings and play around with config until it works
http://springrts.com/wiki/Springsettings.cfg
Playing zero-K might have worked because it uses different engine version. (thus maybe also different settings)
There is small chance that it is a mod-issue but it is such simple, empty mod that it a crash on loading seems more a "playing" problem rather than "modding."
The unit obviously gets loaded and works. To test type into chat:
/cheat
/give cube
Unit not spawning:
Scripting problem, in short: use a different base mod.
Via springlobby a unit is spawned at gamestart, but not via spring.exe (at least not via "Sandbox" script)
Reason is that no faction gets assigned or whatever and thus this mod's unit-spawn-gadget does not work.
Other gadget account for this case like this:
( springcontent.sdz\LuaGadgets\Gadgets\game_spawn.lua )
Code: Select all
local function GetStartUnit(teamID)
-- get the team startup info
local side = select(5, Spring.GetTeamInfo(teamID))
local startUnit
if (side == "") then
-- startscript didn't specify a side for this team
Easiest way to fix is not to fix it and instead to use a working "base mod".
That is one of the reason for the warning on
http://springrts.com/wiki/The_Complete_ ... pring_Game ATTENTION: Engine changes mean the games/examples below DO NOT WORK 100% CORRECT ANYMORE:
Re: I need thies unit bases.
Posted: 26 Sep 2014, 00:26
by TheDarkOne
so...where can i get a good game base so i can make my RTS?
Re: I need thies unit bases.
Posted: 26 Sep 2014, 00:33
by knorke
Re: I need thies unit bases.
Posted: 26 Sep 2014, 20:42
by TheDarkOne
Spring lobby does not read it, but, the spring icon above that (the red one) does. And...so..do i just like add in a unit folder?
Re: I need thies unit bases.
Posted: 26 Sep 2014, 21:34
by Silentwings
It could be that in SL you will need to go edit->prefs->spring and tell it where your spring is.
Re: I need thies unit bases.
Posted: 26 Sep 2014, 22:21
by TheDarkOne
Still not working...oh well i'll worry about that last after the game is fished! So...can someone give me codes for this?
-unit that moves
-spawn the unit at start
-end game when that unit dies