Journeywar
Moderators: Moderators, Content Developer
Re: Journeywar
It could do with a cap on the end of the tracks for completeness
Re: Journeywar
Happens very rarely to me too (in 0.82.7.1 too) when alt tabing on load or someting. Running certain programs in background seems to trigger it more likely.Anybody can link me to the reason why in 84 suddenly half of the units are displayed black?
So just restart spring I think..
Also Blaine the Mono.
Re: Journeywar
Just posting some boolean expression. Now in retrospective even more true. That stumpy tutorial is actually the lua tutorial. Your Dealers CrackCookieAdvice: immediate reSults are the most important stuff nowadays to get people hooked to stuff!13] <[WTO]Razorblade> downloaded the pdf for lua
[21:48:20] <[WTO]Razorblade> 329 fucking pages
[21:48:46] <PicassoCT> yeah, and every single one of it scaring you of
[21:48:47] <PicassoCT> f
[21:48:51] <PicassoCT> bad way to start
[21:48:55] <PicassoCT> start animating a unit
[21:48:59] <PicassoCT> its the easy way into
[21:49:06] <PicassoCT> the rest comes over time
[21:49:16] <PicassoCT> just make a turret turn when a unit idles
[21:49:41] <PicassoCT> or a tank turn on the spot once he stops
[21:49:43] <PicassoCT> such stuff
[21:51:24] <PicassoCT> http://springrts.com/wiki/Animation-LuaCallouts
[21:51:28] <PicassoCT> this is how i started
[21:51:37] <PicassoCT> simple stuff, you see cause and effect immediatly
[21:52:09] <PicassoCT> i trained it there, and when something refused to work, i returned there, where the stuff lurks that always works
[21:52:23] <PicassoCT> when some math formula gave me hell, i returned to that
[21:52:55] <PicassoCT> i only look into those tutorials and books (the spring api more often) if i need something
[21:54:19] <PicassoCT> programing languages are teached wrong, by forching you through all that dry stuff at the beginning.
[21:54:31] <PicassoCT> What is a integer, what is a float...
[21:54:39] <PicassoCT> functions.. all that stuff
[21:55:34] <PicassoCT> yeah its important, but still people need to see results on t he first day. And by results i mean more then "hello world". Last time text was specTacular was 60s
Re: Journeywar
still all units are displayed black. Spring developed a habbit of freezing for 5 mins or so, once i alt tab to notepad++.
I wrote a nameDisSector method for cheeselobby, and testing it currently out. Takes the string delivert to it (e.g by squl query) returns a ArrayList object, with the name, the clantag, and some "possible" nicks, although that is fairly inacurrate.
I wrote a nameDisSector method for cheeselobby, and testing it currently out. Takes the string delivert to it (e.g by squl query) returns a ArrayList object, with the name, the clantag, and some "possible" nicks, although that is fairly inacurrate.
Re: Journeywar
heres the thing.. is use tables now. they work, the problem starts when i try to combine tables with tables.
http://www.youtube.com/watch?v=q-4gpxAyp04
Pillar6 contains various pieces, and is one of six Pillars.
Nowif i have a function to animate said pillar, how do i adress the pillar and the piece? I tried various Variations of the following code getting nowhere or getting the error message that the adressed table object is nil.
function unfoldPillar(number,speed,boolInit)
So what is the syntax to adress the same elements in multiple nubered tables?
Sorry knorke, das is genau im toten Winkel von dem Tankchain tutorial. Ich kapiere wie ich an ein piece in einem table komme. Aber wie komme ich an table in tables?
http://www.youtube.com/watch?v=q-4gpxAyp04
Pillar6 contains various pieces, and is one of six Pillars.
Nowif i have a function to animate said pillar, how do i adress the pillar and the piece? I tried various Variations of the following code getting nowhere or getting the error message that the adressed table object is nil.
function unfoldPillar(number,speed,boolInit)
Code: Select all
if number==6 or number == 4 or boolInit== true then
Move(usul[number][1],y_axis,0,speed)
WaitForMove(usul[number][1],y_axis)
end
--decap Pillar
Turn(("pillar"..number)[2],z_axis,math.rad(-200),speed)
WaitForTurn(("pillar"..number)[2],z_axis)
Show(("pillar"..number)[5])
Show(("pillar"..number)[9])
Show(("pillar"..number)[6])
Show(("pillar"..number)[10])
...
Sorry knorke, das is genau im toten Winkel von dem Tankchain tutorial. Ich kapiere wie ich an ein piece in einem table komme. Aber wie komme ich an table in tables?
Re: Journeywar
iphone is eating my postings. Is there an app for that?
tables in tables:
Normally you would do:
item = table[index]
Now if item is again another table, you could do:
item1 = table[index]
item2 = item1[index2]
or shorter:
item = table[index1][index2]
(kind of like an 2d array)
or
item = table.index1.index2
is basically the same.
But any Lua tutorial can probally explain better:
http://lua.gts-stolberg.de/Tables.php
Same example with tables in tables might be this:
https://code.google.com/p/evolutionrts/ ... _cover.lua
( http://www.youtube.com/watch?v=7A0tTHNpDgs )
There you see both ways of tables in tables:
cover[tx][tz] = c
blabla = ud.customParams.needed_cover
(can also write table["bla"] but it seems nobody ever does that)
---
All the Move/Turn/Show/... functions want piece to be a number.
Try doing this:
bla = piece "head"
Spring.Echo ("this is piece number: " .. bla)
Notice how bla will just be a normal number (or nil if "head" does not exist)
This is also why you can easily for example make all pieces of a unit explode without having to save the pieces in a variable/table first:
Now (unless really funny lua synthax i dont know about?) this:
("pillar"..number)[5]
is a string thus error error.
On video the unit seems to work though?
tables in tables:
Normally you would do:
item = table[index]
Now if item is again another table, you could do:
item1 = table[index]
item2 = item1[index2]
or shorter:
item = table[index1][index2]
(kind of like an 2d array)
or
item = table.index1.index2
is basically the same.
But any Lua tutorial can probally explain better:
http://lua.gts-stolberg.de/Tables.php
Same example with tables in tables might be this:
https://code.google.com/p/evolutionrts/ ... _cover.lua
( http://www.youtube.com/watch?v=7A0tTHNpDgs )
There you see both ways of tables in tables:
cover[tx][tz] = c
blabla = ud.customParams.needed_cover
(can also write table["bla"] but it seems nobody ever does that)
---
When you think about it, this does not make sense:Show(("pillar"..number)[5])
All the Move/Turn/Show/... functions want piece to be a number.
Try doing this:
bla = piece "head"
Spring.Echo ("this is piece number: " .. bla)
Notice how bla will just be a normal number (or nil if "head" does not exist)
This is also why you can easily for example make all pieces of a unit explode without having to save the pieces in a variable/table first:
Code: Select all
For i=1,5 do --for models with 5 pieces
Explode (i)
end
("pillar"..number)[5]
is a string thus error error.
On video the unit seems to work though?
Re: Journeywar
video is with the fold-code comented out. Thx knorke.
Re: Journeywar
Awwww... this.. this really would be nice.. think .. if the gamagardener... could unplug.. trees... and carry those to industrybait for reclaiming...awwww... featurecreepy.... but.. fuck i can do this..
Re: Journeywar
Makes a nice screensaver alive!

- Attachments
-
- LooksLikeaMovie.jpg
- (244.37 KiB) Downloaded 4 times
Re: Journeywar
Someone's been reading /r/wtf~knorke wrote:this should be in jw:
[snip]

Re: Journeywar
Oh, forgot to post it..
[img]v[/img]
^This will be in JourneyWar.. Gardener has a BagPack now
[img]v[/img]
^This will be in JourneyWar.. Gardener has a BagPack now
Re: Journeywar
lolPicassoCT wrote:Oh, forgot to post it..
[img]v[/img]
^This will be in JourneyWar.. Gardener has a BagPack now
Re: Journeywar
Good Friend of mine who specialises in writting bots wrote a awesome tool for testing in units in spring with AutoIT. It opens spring, spawns the units (even whole test-scenarios "zombies vs sentrys- in never get tired V.101")
He promised to upload once he removed some hard-coded stuff. Stay tuned, moddevs!
He promised to upload once he removed some hard-coded stuff. Stay tuned, moddevs!
Re: Journeywar
currently still debugging the contrain...
also learning for exams.
And realized the following thing:
Flames, even the god ones in zerok, i dont find them convingcing from heart

So, i idled, and while idling, the internets (s)trolled by , showing me this
http://www.escapemotions.com/experiment ... x.html#top
So i was like, couldnt we do this in realtime ingame?
The answer, yes we could. But its a hell load of work, basically halting moddev for one, two, three weak (months)*

So how do i aim to approach this? First this will be not a 3dimensional flame, but a 2d"Flametexture" generated by a brush, and then alphaclipped for all objects between itself and the eye.
And to archieve that within acceptable performancelimits, loads of the functions for it gonna be optimized gc. And i shall call it titTanic,he unthinkable!
Srsly, ill try it, but well see how far i get, once exams are over. I need those flames for the units with flamethrower weapons and the fireflower explosions.
Data needed: for every point Coords of the flameStream 2d Array
Brushsize: can change at every point
randSeed= So the flam wont be generated always looking exactly the same.
GradientSkope: 2 Rgbvalues, applied from the innermost particle in the brushchain to the outermost.
weakened month: estimated to be way << less then a year
also learning for exams.
And realized the following thing:
Flames, even the god ones in zerok, i dont find them convingcing from heart

So, i idled, and while idling, the internets (s)trolled by , showing me this
http://www.escapemotions.com/experiment ... x.html#top
So i was like, couldnt we do this in realtime ingame?
The answer, yes we could. But its a hell load of work, basically halting moddev for one, two, three weak (months)*
So how do i aim to approach this? First this will be not a 3dimensional flame, but a 2d"Flametexture" generated by a brush, and then alphaclipped for all objects between itself and the eye.
And to archieve that within acceptable performancelimits, loads of the functions for it gonna be optimized gc. And i shall call it titTanic,he unthinkable!
Srsly, ill try it, but well see how far i get, once exams are over. I need those flames for the units with flamethrower weapons and the fireflower explosions.
Data needed: for every point Coords of the flameStream 2d Array
Brushsize: can change at every point
randSeed= So the flam wont be generated always looking exactly the same.
GradientSkope: 2 Rgbvalues, applied from the innermost particle in the brushchain to the outermost.
weakened month: estimated to be way << less then a year
- Attachments
-
- flame_dragon.jpg
- (257.11 KiB) Downloaded 4 times
Re: Journeywar
Its not featurecreep breaking if someone else might volunteer to implement it!
http://www.imagebanana.com/view/71rrptlj/comEnder.jpg
http://www.imagebanana.com/view/71rrptlj/comEnder.jpg
Re: Journeywar
Just a little update:
I had little times due to studying for exams:
so all i got is a big todoList:
fireShadder: well, its the 2d-drawer i plan doing during the semester-break
This is how it will look in action (robbing screenies from zeroK)
Then i promised a friend, he would get the comEnder to work on.
comEnder is modelled, just needs to be textured. Also lurking for some work- or final touches are:
comEnders (weapons): ShroudGun/AimedRocket/UnAimedRocket/Flamethrower/Nanoforge (builts NanofibrebladeSnakes, are sort of a subUnit, the comEnder auto-built 5 of those)
conTrain: actually finnished, just needs tuning (kick the little performance eaters)
wallBuilder: (who builts and charges the electricFences)
Beherith: I always had him on the list.
combineSuperSoldier(AnotherFireUnit)
And all that in 5 weeks. I guess im getting ambitious.
I had little times due to studying for exams:
so all i got is a big todoList:
fireShadder: well, its the 2d-drawer i plan doing during the semester-break
This is how it will look in action (robbing screenies from zeroK)

Then i promised a friend, he would get the comEnder to work on.
comEnder is modelled, just needs to be textured. Also lurking for some work- or final touches are:
comEnders (weapons): ShroudGun/AimedRocket/UnAimedRocket/Flamethrower/Nanoforge (builts NanofibrebladeSnakes, are sort of a subUnit, the comEnder auto-built 5 of those)
conTrain: actually finnished, just needs tuning (kick the little performance eaters)
wallBuilder: (who builts and charges the electricFences)
Beherith: I always had him on the list.
combineSuperSoldier(AnotherFireUnit)
And all that in 5 weeks. I guess im getting ambitious.
Re: Journeywar
that reminds me this 'flower' i made, as some tank trap, found it any usefull ?knorke wrote:this should be in jw: