Forum

> > CS2D > Maps/Editor > Image as Map.
Forums overviewCS2D overview Maps/Editor overviewLog in to reply

English Image as Map.

15 replies
To the start Previous 1 Next To the start

old Image as Map.

Kozzen
User Off Offline

Quote
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?

old Re: Image as Map.

mrc
User Off Offline

Quote
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

old Re: Image as Map.

Rainoth
Moderator Off Offline

Quote
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.

old Re: Image as Map.

Gaios
Reviewer Off Offline

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

old Re: Image as Map.

SQ
Moderator Off Offline

Quote
@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.

old Re: Image as Map.

DC
Admin Off Offline

Quote
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.

old Re: Image as Map.

Gaios
Reviewer Off Offline

Quote
@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.

old Re: Image as Map.

DC
Admin Off Offline

Quote
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.
edited 2×, last 28.12.17 03:37:48 pm

old Re: Image as Map.

Kozzen
User Off Offline

Quote
@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.

old Re: Image as Map.

SkullFace
User Off Offline

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

And image looks nice. Similar to DoorKickers

old Re: Image as Map.

Kozzen
User Off Offline

Quote
@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.

old Re: Image as Map.

DC
Admin Off Offline

Quote
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.

old Re: Image as Map.

Talented Doge
User Off Offline

Quote
DC meant you could set the background as the image that you will be using to force users download the image.
To the start Previous 1 Next To the start
Log in to reply Maps/Editor overviewCS2D overviewForums overview