PlaneShift
Support => Technical Help: IN GAME bugs (after loading world) => Topic started by: sunhear on May 18, 2014, 04:49:56 pm
-
Hi
i have some images that i want to load in to the game to sale they are DDS files already and i can not replicate ir with the in game drawling tools. how do i do this so the images can be viewed by both me and the other player?
sunhear
-
It is possible that the line count is too high. I know that the in game maps only support a limited amount of lines, and it is difficult to capture details.
-
DDS textures must have dimensions (width and height) being exactly powers of 2 (= 64, 128, 256, 512...). They don't need to be squares, though; if it makes sense, e.g. 256×64 is supported. Preferable compression modes are DXT1a and DXT5, rarely DXT3.
How to include them so that they replace default images (like custom User Interface modifications) is a little complex, though. You should have a look into the imagelist file and existing GUI mods. And you may not be able to easily replace each image this way.
-
It is technically possible to load images into maps and books (but books don't work well enough yet to be officially used). But the image you add to them will -only- be on your computer. If you showed the book/map to someone else they would see nothing. So in order to sell them your map you would have to get them to download your dds file, place it into their client, modify the imagelist.xml file(s) so the game knows there the image is, and then buy your book.
So really it isn't possible to load a personal image into books/maps and then sell them so others can use them.
-
hi
how dose viweing images made in game work?
sunhear
-
You don't make (pixel) "images" in game. There are maps which are "drawings", possibly containing vector objects (lines, curves), text objects and predefined icons. If you save them locally, they will be XML files, with a syntax similar to SVG (Scalable Vector Graphics). If you give a map to another character in-game, they will see lines, curves, and texts drawn in the same way as everyone, and have the same icons put at the given coordinates on the map.
-
can i save a file as a XLM file and port it in game?
-
There is an SVG to PlaneShift Sketch XML converter (http://www.hydlaaplaza.com/smf/index.php?topic=35557.0) written in Ruby. But PlaneShift sketches are quite limited, especially regarding a maximum size, related to a maximum number of drawing elements in it. And not everyone may be used to running Ruby.
-
hi
how do i run the script?
Sunhear
-
As far as I understood ... install a Ruby interpreter, then execute it in a command line interpreter. No buttons, no mouse.
-
hi
ok i tryed to run the scriped i was able to coppy and pace the code in to program. it was able to run however it dod not return a file. i realise i have to subaturte some code for the file infromatiom. can some one what parts to subaature and for what infomrtion?
thanks