otclient icon indicating copy to clipboard operation
otclient copied to clipboard

.pngs instead of .spr and .ini/.xml instead of .dat?

Open scoterr opened this issue 13 years ago • 6 comments

Hello, next request from me. There's lot of problems creating our own custom .dat and .spr files. TibiaEditor is very buggy and importing sprites in NoxSpr for example is a real pain. I think the support for plain .ini or .xml files instead of .dat will be great. inisystem.png

scoterr avatar Dec 10 '12 11:12 scoterr

Out of curiosity, have you written up the structure for the ini or xml files?

BenDol avatar Dec 10 '12 11:12 BenDol

[item101]
width=1
height=1
crop-size=0
blend=1
x-repeat=1
y-repeat=1
z-repear=1
animation=1
sprites=2
changes_speed=280
ground_item=true
on-top=0
stackable=false
corpose=false
usable=false
rune=false
writable=false
readable=false
fluid_container=false
splash=false
blocking=false
not_movable=true
light_source=false
radius=0
color=0
blocking_for_missiles=false
blocking_for_pathfinder=false
pickable=false
hangable=false
horizontal_wall=false
vertical_wall=false
rotatable=false
0x17_uknown=false
offset_position=false
x=0
y=0
floor_change=false
has_heigh=0
bottom_layer=false
animation_when_idle=false
minimap_color=24
help_id=0
container=false

This is an example based on my custom grass tile. I can make an app for easier configuration but implementing this in OTClient is too hard for me.

scoterr avatar Dec 10 '12 12:12 scoterr

I've thought about this months ago, and realized that it wont be practical since you'll need a mapeditor and otitemeditor compatible with this. So, if you're having troubles with spr/dat editor, its much easier to make your own.

hrsantiago avatar Dec 10 '12 17:12 hrsantiago

Hmmm... Agreed with Baxnie. But the possibilities would be great, like creating bigger sprites facing left or down (you cannot use negative offset on dat to put them on the correct position, only right/up with positive offset).

ricardoianelli avatar Dec 12 '12 14:12 ricardoianelli

If someone wants to implement a class for reading ini based data structures, feel free to make a pull request when you are done :)

BenDol avatar Dec 29 '12 18:12 BenDol

This is closed until someone create a mapeditor and otitemeditor opensource.

hrsantiago avatar Jan 03 '13 06:01 hrsantiago