Forum

> > CS2D > Maps/Editor > Image as Map.
ForenübersichtCS2D-Übersicht Maps/Editor-ÜbersichtEinloggen, um zu antworten

Englisch Image as Map.

15 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Image as Map.

Kozzen
User Off Offline

Zitieren
have any way to save or make players download img of the map.
i was testing ways to make map and i was making the image map way, where u get one image and use it as a map, like this example here.IMG:https://mir-s3-cdn-cf.behance.net/project_modules/disp/14622749380557.560858d24a85e.png


i can load the image if i place the image inside of the cs2d path
Steam\steamapps\common\CS2D\gfx. and use in editor
but i can't make players load the image or save the image in the map.

u guys know any way to do that?

alt Re: Image as Map.

mrc
User Off Offline

Zitieren
Yep, its easy. Just open ur servertransfer.lst at sys folder with a text editor and add the path of ur file there.

Example: gfx/sprites/mymap.png

alt Re: Image as Map.

Rainoth
Moderator Off Offline

Zitieren
Your aim is to put an image over your map so it basically displays EVERYTHING in graphics? Neat idea but if your image is too big, nobody is going download when they join the server.

alt Re: Image as Map.

Gaios
Reviewer Off Offline

Zitieren
It looks good, but is it HQ? Also CS2D still is sh*t and doesn't support 64x64 images from Map Editor.

alt Re: Image as Map.

SQ
Moderator Off Offline

Zitieren
@user Gaios: It does support hd sprites and everything. Just scale sprites to (0.5, 0.5) and you get the same result. It's how everything else on HD feature works.

alt Re: Image as Map.

DC
Admin Off Offline

Zitieren
Simply use an cs2d entity env_sprite or cs2d entity env_image in your map and use your image with it. Transfer then will just work.

All resources (images/sounds) which are part of a map do NOT need to be added to servertransfer.lst! They will be transferred anyway because they are crucial for making the map look right. So even large images will be transferred in that case. The transfer limits in the settings have no impact on map resources.

alt Re: Image as Map.

Gaios
Reviewer Off Offline

Zitieren
@user DC: You're kidding.. from what I remember recent versions of CS2D don't download all files from the map like GFX or SFX.

alt Re: Image as Map.

DC
Admin Off Offline

Zitieren
Okay I checked. Guess I was wrong. Looks like the size limit is only ignored for background images and tilesets in maps, not for images and sounds used in map entities. Maybe I should change that.. or maybe not..

Edit @user Kozzen: A hack would be to use that image as background image and to cover the actual background with tiles or whatever. Then it will definitely be transferred no matter what size it has and you can use it in Lua scripts or entities.
2× editiert, zuletzt 28.12.17 15:37:48

alt Re: Image as Map.

Kozzen
User Off Offline

Zitieren
@user DC: i tried with background img, but the problem is that in game the background is following the player so your character dont move arround of the map. now as tilesets i will have limit with 512x512 and most images in the internet is bigger than that.

also i don't know lua other else i was making a game in roblox right now but i don't know lua or someone that know lua for make game with me, so i can't do edits in cs2d.

alt Re: Image as Map.

SkullFace
User Off Offline

Zitieren
Did you try the "Scroll background like tiles?" option ?

And image looks nice. Similar to DoorKickers

alt Re: Image as Map.

Kozzen
User Off Offline

Zitieren
@user SkullFace: no, i tested that right now and it works but the background become too small for work as a map, woud be cool an image resizer option in the background.

alt Re: Image as Map.

DC
Admin Off Offline

Zitieren
What I meant is to only add the image as background for the transfer. Do not actually use it. Instead COVER the background with entities which use the same image like cs2d entity env_image or cs2d entity env_sprite.

You can also cover the rest (e.g. borders around the image) with additional images or tiles so people don't see the map background.

alt Re: Image as Map.

Talented Doge
User Off Offline

Zitieren
DC meant you could set the background as the image that you will be using to force users download the image.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Maps/Editor-ÜbersichtCS2D-ÜbersichtForenübersicht