I need thies unit bases.
Moderator: Moderators
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: I need thies unit bases.
@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.
I didn't read the code either, but I didn't find anything else that could cause nospawn.
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: I need thies unit bases.
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.
Does the examplemod have a maintainer? http://springrts.com/phpbb/viewtopic.ph ... 67#p561467
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!
Re: I need thies unit bases.
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 )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
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

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
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:
-
- Posts: 39
- Joined: 01 Dec 2013, 23:15
Re: I need thies unit bases.
so...where can i get a good game base so i can make my RTS?
-
- Posts: 39
- Joined: 01 Dec 2013, 23:15
Re: I need thies unit bases.
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?
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: I need thies unit bases.
It could be that in SL you will need to go edit->prefs->spring and tell it where your spring is.
-
- Posts: 39
- Joined: 01 Dec 2013, 23:15
Re: I need thies unit bases.
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
-unit that moves
-spawn the unit at start
-end game when that unit dies