How to avoid every kind of spam in your map

Read tips and guides about teeworlds-related subjects (mapping, compiling, ..).
Post Reply
RayB.
Posts: 1170
Joined: Mon Dec 01, 2014 9:24 pm
Clan: TOP

How to avoid every kind of spam in your map

Post by RayB. »

How to avoid every kind of spam in your map
written by RayB.

In the last time I saw many maps with gametile spams that makes the player lag or hide the parts. It was impossible to play/test them. So I decided to make a short "tutorial" to show you how to avoid any kind of spam.
screenshot_2016-06-12_15-46-34.png
screenshot_2016-06-12_15-46-34.png (589.07 KiB) Viewed 3056 times
switch spam type one
SpoilerShow
screenshot_2016-06-12_14-08-12.png
screenshot_2016-06-12_14-08-12.png (605.64 KiB) Viewed 3056 times
Here you can see the start of the fantastic map Delirious by Bixes. He used many switch doors & dragging lasers in the map, so he added many green and red switches at the start to enable and deactivate them.
But he didn't knew that the green switches are already enabled ! You can also use server settings and set switch_open X to have switch X open by default, otherwise it is closed by default.
So he deleted them and the start looks now like this.
screenshot_2016-06-12_14-19-51.png
screenshot_2016-06-12_14-19-51.png (621.16 KiB) Viewed 3056 times
switch spam type two
SpoilerShow
screenshot_2016-06-12_14-44-01.png
screenshot_2016-06-12_14-44-01.png (345.02 KiB) Viewed 3056 times
Here you can see the great recently released dummy map Destruction by Zerodin & Hindu.

Switches in teleporter/freeze is the most common switch spam. Personally I don't understand why the most mappers add switches in the teleporter instead of adding them on the totele. Zerodin and Hindu wanted to enable a dragging laser to get your dummy back to the start of the part when you fail. So they did this but they could fix this spam by adding a green switch with a 2 sec delay on the totele or adding a green switch in the near of the totele.
screenshot_2016-06-12_14-45-05.png
screenshot_2016-06-12_14-45-05.png (184.39 KiB) Viewed 3056 times
switch spam type three
SpoilerShow
screenshot_2016-05-14_22-04-16.png
screenshot_2016-05-14_22-04-16.png (407.14 KiB) Viewed 3056 times
Here you can see the map Handifly by Aoe. The map is really hard and the only map with nearly every kind of spam,
but I want to show you different maps. So how you can see Aoe added the red and green switches and now I see nothing :/. The perfect solution is to add the green switches that you can see in the following screenshot.
screenshot_2016-05-14_22-13-57.png
screenshot_2016-05-14_22-13-57.png (291.85 KiB) Viewed 3056 times
bye switch spam and hello tele spam
SpoilerShow
screenshot_2016-06-12_15-08-33.png
screenshot_2016-06-12_15-08-33.png (109.53 KiB) Viewed 3056 times
Here you can see the nice map GenericRush1 by Hindu & Trax. The displayed part is a hammerfly part with teleporter. The mappers added the teleporter like they marked them but they only have to add telporter on the edge and you should do it also like this. As long you haven't a katana or jetpack because you can go through teleporter with this weapons easily. So take care !
screenshot_2016-06-12_15-09-27.png
screenshot_2016-06-12_15-09-27.png (90.62 KiB) Viewed 3056 times
speedup spam
SpoilerShow
screenshot_2016-06-12_15-41-03.png
screenshot_2016-06-12_15-41-03.png (266.33 KiB) Viewed 3056 times
The worst typ of spam is the speedup spam. You can fix it basically with using tunetiles but this is more work.
So here you can see me drowning in the map Generica. Themix added speedups on the water to make you feel swimming on the water. The problem is that speedups cause extrem laggs and so he had to use tunetiles.
This tunetiles are awesome for fixing this problem the laggs are nearly complete disappeared. Just replace the speedups with the tunetile and add the following text in the servers settings.
screenshot_2016-06-12_15-31-30.png
screenshot_2016-06-12_15-31-30.png (136.65 KiB) Viewed 3056 times
screenshot_2016-06-12_15-30-27.png
screenshot_2016-06-12_15-30-27.png (192.54 KiB) Viewed 3011 times
envelopes spam
SpoilerShow
screenshot_2016-06-12_12-29-46.png
screenshot_2016-06-12_12-29-46.png (493.32 KiB) Viewed 3056 times
This map is Greed by kosho also a good dummy map. He added the sun from Out of Castle by Loop. He and many mappers don't know how to use envelopes and append rotating suns & wheels or whatever but sometimes they add more envelopes then needed ! If you are this typ of guy I show you how to see which envelopes you used and how to delete them. Leftclick the animated quad/tile and look at the number of the envelopes. Now delete the other envelopes and everything is fine :O
screenshot_2016-06-12_12-29-39.png
screenshot_2016-06-12_12-29-39.png (390.42 KiB) Viewed 3024 times

gfx_text_overlay 100 to disable the text for rendering switches, speedups and teles. Much faster rendering because text rendering is the slowest part.
Last edited by RayB. on Sun Jun 12, 2016 7:20 pm, edited 12 times in total.
User avatar
deen
TECHNICAL Team
Posts: 3575
Joined: Mon May 05, 2014 2:30 pm
Player profile: https://ddnet.org/players/deen/
Discord: deen#5910

Re: How to avoid every kind of spam in your map

Post by deen »

Thanks for caring about performance. Some remarks:

You can use server settings and set switch_open X to have switch X open by default, otherwise it is closed by default.

gfx_text_overlay 100 to disable the text for rendering switches, speedups and teles. Much faster rendering because text rendering is the slowest part.

Full list of settings and commands: https://ddnet.tw/settingscommands/
Index
Posts: 1133
Joined: Mon May 05, 2014 7:30 pm
Clan: Eagle

Re: How to avoid every kind of spam in your map

Post by Index »

Nicely written tutorial, RayB. <3 These are definitely good tips, not only for perfomance reasons but also for a better flow of the game.
So, I slightly edited the post to match the other tutorials here and added the topic to the link list.
Hope that doesn't feel too much like a dictatorship in this sub-forum xdd
RayB.
Posts: 1170
Joined: Mon Dec 01, 2014 9:24 pm
Clan: TOP

Re: How to avoid every kind of spam in your map

Post by RayB. »

Thanks deen & index !
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests