I need thies unit bases. - Page 4

I need thies unit bases.

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
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: I need thies unit bases.

Post 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.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: I need thies unit bases.

Post by Jools »

I didn't read the code either, but I didn't find anything else that could cause nospawn.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: I need thies unit bases.

Post 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
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: I need thies unit bases.

Post 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 :roll: 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:
TheDarkOne
Posts: 39
Joined: 01 Dec 2013, 23:15

Re: I need thies unit bases.

Post by TheDarkOne »

so...where can i get a good game base so i can make my RTS?
TheDarkOne
Posts: 39
Joined: 01 Dec 2013, 23:15

Re: I need thies unit bases.

Post 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?
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: I need thies unit bases.

Post by Silentwings »

It could be that in SL you will need to go edit->prefs->spring and tell it where your spring is.
TheDarkOne
Posts: 39
Joined: 01 Dec 2013, 23:15

Re: I need thies unit bases.

Post 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
Post Reply

Return to “Game Development”