Mood is a thing for - Page 6

Mood is a thing for

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderator: Moderators

User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: Mood is a thing for

Post by zoggop »

It works! Apparently all that culling of pointless unitdef params was good, and all I needed was to put transportSize = 10000 back in. I thought it was unnecessary because after reading http://springrts.com/wiki/Units-UnitDefs#Transports I dyslexiaed transportSize and transportMass (size defaults to 0, mass defaults to 100000).

Now to work out some kinks...
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Re: Mood is a thing for

Post by PicassoCT »

Thumping in epic thread..

Image2
Attachments
DuneTV-ThumperCU.jpg
DuneTV-ThumperCU.jpg (86.18 KiB) Viewed 3446 times
User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: Mood is a thing for

Post by zoggop »

worm obstacle navigation system not perfect, but that must be a feature, because worms can't be too smart

in any case, how do i get sworm's LOD to not be a brown square?
Image

same worm up close:
Image

or i could just set their icon distance lower than their LOD distance (speaking of which, i need to make a sand worm icon)
User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: Mood is a thing for

Post by zoggop »

PS aside from the LOD thing, everything seems to be running smoothly. Give it a go if you like before I actually release anything to springfiles. And it might be good to have someone other than my brother and I test it if it gets put into any other map.

edit: i forgot about sound--this def. needs sound (ha ha, get it?)
(and this topic should be renamed "zoggop mumbles to himself")
Attachments
CaL-sworm_testing-feb29_2012.zip
(598.25 KiB) Downloaded 27 times
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Re: Mood is a thing for

Post by PicassoCT »

One question... if modeled a Kiwi (the Bird) as a Unit, could that sandworm swallow it? ;)
User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: Mood is a thing for

Post by zoggop »

I would feel sorry for the poor Kiwi. One question... HOW DOES I LODS?!
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Mood is a thing for

Post by knorke »

if Spring.GetMapOptions().sand_worms == "0" then
spoonguard danger!!! protect yourself!
in any case, how do i get sworm's LOD to not be a brown square?
could be this: http://springrts.com/wiki/Trouble-shoot ... aring_Unit

wormXZ[wID]
wormTarget[wID]
bestDist[wID]
:arrow:
worm[wID].x
worm[wID].z
worm[wID].blabla
Makes many things easier eg:
local function wormDie(wID)
worm[wID] = nil
end

instead of reseting all tables manually.

there are roughly 33 game frames per second
30
Image

In function wormTargetting() you could skip alot of stuff if at the start you do if isEmergedWorm[uID]
Give it a go if you like
too lazy to copy the stuff in some map to test :/

With MoveCtrl instead of attach'ing the worm could also swallow buildings and units that react lolzy to being attached, try attaching an aircraft :roll:
There is some function to read piece position in world coordinates.

Also it is absolutely essential that bigger units do not get swallowed whole but are bitten into pieces.
Like the cookiemonster that does not eat cookies but just enjoys throwing crumbles in the air :roll:
Try if you can make unit pieces explode from a gadget, maybe:

Code: Select all

env = Spring.UnitScript.GetScriptEnv(unitID)		
if (env) then 
local pieceNumber = math.random (0,table.getn(Spring.GetUnitPieceList  (unitID))) --random piece
local exploType = exploType = SFX.FALL + SFX.NO_HEATCLOUD
Spring.UnitScript.CallAsUnit(unitID, env.Explode, pieceNumber, exploType) end
(lus-units only, not tested)
Spring.MarkerAddPoint(x, y, z, "Worm Sign")
Spring.MarkerErasePosition(x, y, z)
kinda dislike when widgets do this because it erases drawings in a radius around x,y,z.
But I guess it is up to the mod to add some better MiniMapPing (x,y,z) function. (iirc zK has that, at least i remember circles on the minimap if something gets attacked. Not sure if useable by other wupgets)
User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: Mood is a thing for

Post by zoggop »

Thanks knorke!

I'm also not really a fan of the the whole adding a marker point and erasing it thing, but I was feeling too lazy to write something that does essentially the same thing, but more aesthetically & without accidentally erasing other marker points. :-P

Just tried it out in a 1v1 game, and discovered that worm chases airplanes like a dog chasing a laser pointer. LOL need to add an if.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Re: Mood is a thing for

Post by PicassoCT »

Now.. i came out here.. into the sandbox..i waited..
User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: Mood is a thing for

Post by zoggop »

hope you brought a thumper

much progress: sounds, lod fixed, sworm no longer ghosts as a penis, less shitty radar icon, targetting prioritization, little lightning arcs on the sand, working on a worm sign notification widget that's not just markeraddpoint&markerremoveposition (pink lightning bolt icon instead!).

(in other words, the project is not dead)
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Re: Mood is a thing for

Post by PicassoCT »

the spice must flow.. now...
User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: Mood is a thing for

Post by zoggop »

spice flows

http://ge.tt/1DQeSyE

alas, no munching bit-by-bit or sworms that come in small, medium, and large... yet.
User avatar
FabriceFABS
Posts: 354
Joined: 28 Jul 2010, 16:20

Re: Mood is a thing for

Post by FabriceFABS »

Hi zoggop !

You know I rencently told you that the game didn't start with your fun map on BA 7.81 + Spring 94.1
After investigations, seems that :
It starts VS kbots only.

To be sure, knorke helped me for tests.
1 human VS 1 human >> doesn't work
1 human + NullAI VS 1 human + NullAI >> Works

Would you have a look to knorke report :
[12:11:35] <[ACE]Serveur_II> <[ACE]FabriceFABS> Oh !!
[12:11:36] <[ACE]Serveur_II> <[2up]knorke> oho
[12:11:46] <[ACE]Serveur_II> <[2up]knorke> there is mistake in gadget
[12:12:06] <[ACE]Serveur_II> <[2up]knorke> sometimes to allow AIs to play the map better
[12:12:12] <[ACE]Serveur_II> <[2up]knorke> but due to bug it fails..
[12:12:20] <[ACE]Serveur_II> <[ACE]FabriceFABS> So what is the pb exactly ?
[12:12:33] <[2up]knorke> function gadget:AllowCommand(unitID, unitDefID, unitTeam, cmdID, cmdParams, cmdOpts, cmdTag, synced)
[12:12:43] <[2up]knorke> [...]
[12:12:44] <[2up]knorke> if aiPresent then
[12:13:01] <[2up]knorke> and then many stuff, but non of that matters because with no AI, it is never run
[12:13:11] <[2up]knorke> and then at end there is just "end", no return true
[12:13:15] <[2up]knorke> so all commands get blocked
[12:13:30] <[ACE]Serveur_II> <[ACE]FabriceFABS> It's a minor fix of the map then ?
[12:13:38] <[ACE]Serveur_II> <[2up]knorke> yea i think
[12:13:44] <[ACE]Serveur_II> <[ACE]FabriceFABS> Sorry I'm real noob about spring dev :/
[12:13:48] <[ACE]Serveur_II> <[2up]knorke> guess the idea was to prevent AIs from building stupid things on sand or something
Thx ! :-)
Regards.
User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: Mood is a thing for

Post by zoggop »

thanks for looking into this and knorke seeing what's wrong! i think he may have mentioned this to me before, because the fix is present in the code i have backed up on my computer, but not in the archive on springfiles.

i'll rerelease it with some optional sand worms
User avatar
FabriceFABS
Posts: 354
Joined: 28 Jul 2010, 16:20

Re: Mood is a thing for

Post by FabriceFABS »

Thx you VM.

Would you PM me for autohost's update :-) ?

Regards
User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: Mood is a thing for

Post by zoggop »

Is there a way to test a map with two human players on the same computer? I tried running both an installed and a portable version of spring and playing on a local server. As you might expect, this didn't go over well.

a lot of

Code: Select all

[f=0000000] Error: (13) C:\Users\zoggop\spring-94.1\spring.exe(skirmishAiCallback_DataDirs_getWriteableDir+0x3689d8) [0x00B92F78]
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Mood is a thing for

Post by knorke »

zoggop wrote:Is there a way to test a map with two human players on the same computer?
Yes, I just did yesterday to test http://springrts.com/phpbb/viewtopic.ph ... 04#p547326
just two seperate engine installs should work...
Maybe hang is due to something else, first try it with mod+map you surely know is working. Also maybe windowed mode is better.
User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: Mood is a thing for

Post by zoggop »

User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: Mood is a thing for

Post by zoggop »

Anyone else having Pepe Ampere's problem?
I dont see mapOptions you talk about in any lobby.
Works fine in springlobby on windows for me. Map options are hidden at the bottom, below all the game options, but that's normal.
User avatar
qray
Posts: 377
Joined: 02 Feb 2009, 18:49

Re: Mood is a thing for

Post by qray »

Whooo, really nice map!
And the worm / dangereous sand thing is fabulous :-)

ps: map options work on linux and springlobby for me, too.
Post Reply

Return to “Map Creation”