1 (edited by datag 2008-09-10 20:50:55)

Topic: [REQUEST] Map with brightness-effect (day/night)

As in teeworlds >=0.4.3 it's now possible to have a group with a quad-layer _above_ the game-group, simulating day/night in maps can be done now.

Example map (Author: Jeppo): jdm1_dn.map.zip

Unfortunately the envelope in this example map contains a bug which causes the screen to turn black after some seconds after a while. The needed fix is very easy as I was told, but I'm not very familiar with envelopes.

Could please someone create a sample map with a simple envelope (as in example map) and provide it as a template here?

-
Edit: Author name corrected, thx chilly

"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." - Terry Pratchett -

2

Re: [REQUEST] Map with brightness-effect (day/night)

Author is Jeppo, not Seppo x)

Official Teeworlds map developer and community moderator
Administrator for the Teeworlds community Teesites

3

Re: [REQUEST] Map with brightness-effect (day/night)

Hi!


I took a look at Jeppo´s map, I had the same bug with my first envelope maps but I don´t want to change his map. The envelopes in his map are very confusing, instad I want to make my own.


I made a simple day night rythm, it´s just a test and of course not high quality. You also have to make several changes to use it for other maps. But if you want I can change whatever you want, I just wanted to see if you would appreciate my work.


http://rapidshare.de/files/40448308/dn.map.html




This map is quite old, I tried to make animated rain and thunder. I could do better if you want but it was also just a test.


http://www.teeworlds-db.com/web/Stephan … m_rain.map




Tell me more and I will do my best.

Qi - high level gaming
qi.m0g.net

4

Re: [REQUEST] Map with brightness-effect (day/night)

My map "bloodmusic" has day/night effects... you can find it a teestuff.


Hmmm teestuff is offline, I'll upload it elsewhere tonight.

5 (edited by datag 2008-09-11 15:49:05)

Re: [REQUEST] Map with brightness-effect (day/night)

@Stephanator: Your example is a perfect template for using this d/n animation. Thanks Stephanator, very nice work!

Your old dm_rain has nice rain animation, however the n/d-effekt doesn't affect the game-group.

"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." - Terry Pratchett -

6

Re: [REQUEST] Map with brightness-effect (day/night)

catpaw wrote:

My map "bloodmusic" has day/night effects... you can find it a teestuff.


Hmmm teestuff is offline, I'll upload it elsewhere tonight.

Thanks catpaw. But the example Stephanator posted a few seconds before is sufficient.

I wonder how you did this n/d effect above the gane-group?

"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." - Terry Pratchett -

7

Re: [REQUEST] Map with brightness-effect (day/night)

Ok nice to hear that.

The rain map was just an example, I could change so that it does not affect the game group if it is needed.

How I did that? It was very easy, just a group with a quad above the game group and the sun and moon are behind it.

Qi - high level gaming
qi.m0g.net

8

Re: [REQUEST] Map with brightness-effect (day/night)

besides: one can improve the rain effect by using different pos_to

datag: are you having a look at the envelopes so that the effects are the same on all clients?

Antoine de Saint Exupéry: It seems that perfection is reached not when there is nothing left to add, but when there is nothing left to take away.
Besides -  I am the gfx guy!

9

Re: [REQUEST] Map with brightness-effect (day/night)

I don´t know how pos_to works...

Anyway here you can see how it works.

http://img389.imageshack.us/img389/4818/dnyi6.png

Qi - high level gaming
qi.m0g.net

10

Re: [REQUEST] Map with brightness-effect (day/night)

pos_to simply means at which position the position layer starts

Antoine de Saint Exupéry: It seems that perfection is reached not when there is nothing left to add, but when there is nothing left to take away.
Besides -  I am the gfx guy!

11 (edited by catpaw 2008-09-11 16:37:34)

Re: [REQUEST] Map with brightness-effect (day/night)

You simply make a huge quad in a group in front of the game group, then you make it a bit gray... then assign it a color envelope that has a near 0% occupaciy at day, and a 100% occupacy at night. Set this group as 0, 0 parax/y, so it will cover the players screen.

Take care however never to have exact 0% occupacy as due to a teeworlds bug it will suddendly flip to 100%.

Also take care that envolopes are not synced between players, for example on bloodmusic, it turns night exactly five minutes after you have joined. That means some players have day while others have night.... Always made some confusion, since player go ooohhh and ahhh in the chat about the light and star effects when night comes, while others don't yet see a thing.

12

Re: [REQUEST] Map with brightness-effect (day/night)

catpaw wrote:

You simply make a huge quad in a group in front of the game group, then you make it a bit gray... then assign it a color envelope that has a near 0% occupaciy at day, and a 100% occupacy at night.

I made it this way: Don´t set a colour for the quad, just make 2% at day (cause of the bug) and about 60% at night. If you don´t change the colour it will automatically be a little bit black.


catpaw wrote:

Set this group as 0, 0 parax/y, so it will cover the players screen.

No, this group has to be in FRONT of the game layer, so it´s not 0, in my map map it´s 4 for example.


catpaw wrote:

Also take care that envolopes are not synced between players.

And how?

Qi - high level gaming
qi.m0g.net

13 (edited by Landil 2008-09-11 17:12:54)

Re: [REQUEST] Map with brightness-effect (day/night)

Stephanator wrote:
catpaw wrote:

Also take care that envolopes are not synced between players.

And how?

I think he meant: When you create a map please take into consideration that envelopes are not synced.

Antoine de Saint Exupéry: It seems that perfection is reached not when there is nothing left to add, but when there is nothing left to take away.
Besides -  I am the gfx guy!

14 (edited by catpaw 2008-09-11 19:04:10)

Re: [REQUEST] Map with brightness-effect (day/night)

Stephanator wrote:
catpaw wrote:

Set this group as 0, 0 parax/y, so it will cover the players screen.

No, this group has to be in FRONT of the game layer, so it´s not 0, in my map map it´s 4 for example.?

Stephanator, if you read correctly what i wrote, you will see its right. I said set parax/y to 0/0 not set the group order to 0. Hey I did a map where it worked, so don't tell me its wrong, ok? smile

@Landil, exactly. To be specific one must not set the night too dark, as soon it gives you a tactical disadvantage the whole map will fail, as envelopes are not synced between players.

15

Re: [REQUEST] Map with brightness-effect (day/night)

Hm you wrote "set this group as 0" and then a comma, so it sounds strange to me. Anyway forget about that the fact is we know how to do it don´t we xD (Maybe my english is too bad to understand exactly what you write xD)

So how to sync envelopes? oO

Qi - high level gaming
qi.m0g.net

16

Re: [REQUEST] Map with brightness-effect (day/night)

Stephanator wrote:

So how to sync envelopes? oO

sv_reload_map 1

Antoine de Saint Exupéry: It seems that perfection is reached not when there is nothing left to add, but when there is nothing left to take away.
Besides -  I am the gfx guy!

17

Re: [REQUEST] Map with brightness-effect (day/night)

Does that mean:

sv_map_reload 0   --->   Envelopes start when player joins, so that everybody sees other things in the same moment

sv_map_reload 1   --->   Envelopes don´t start again when player join, it´s like binded to the server

??

Qi - high level gaming
qi.m0g.net

18

Re: [REQUEST] Map with brightness-effect (day/night)

._.

No, sv_map_reload 1 restarts the map, so all players scores and envelopes gets resetted, this is not what you want to do. Currently, envelopes are not synced, and you can't do anything about it.

Official Teeworlds map developer and community moderator
Administrator for the Teeworlds community Teesites

19

Re: [REQUEST] Map with brightness-effect (day/night)

Yeah I know that sv_reload_map 1 restarts the map but I wondered what Landil wanted to tell me.
I think reload everytime a player joins won´t be a good solution xD

Qi - high level gaming
qi.m0g.net

20

Re: [REQUEST] Map with brightness-effect (day/night)

I thought Stephanator's question was a joke, cause it was answered in the posts above: it's not possible, yet

Antoine de Saint Exupéry: It seems that perfection is reached not when there is nothing left to add, but when there is nothing left to take away.
Besides -  I am the gfx guy!

21

Re: [REQUEST] Map with brightness-effect (day/night)

I never make any jokes xD

Maybe I was just too tired yesterday xD

Qi - high level gaming
qi.m0g.net