Problems with Tiled .6.1 and questions about other things...

Content and general development discussion, including maps, quests, and server code from the development team.
Post Reply
User avatar
MerlinX420
Warrior
Warrior
Posts: 575
Joined: 23 Dec 2007, 05:42

Problems with Tiled .6.1 and questions about other things...

Post by MerlinX420 » 11 Jan 2008, 04:40

I just started using Tiled .6.1 I find it a good easy enough to use map program. However I have had some problems with editing an existing or created file. Whenever I go to load a map I get Can't read Input file. Failed to load map. Even when I attempt to load a tmw map file in use i get the same error. I am using the Java RE 5.0 on ubuntu linux.

I'm all set to start making maps but this has me confused. I've looked on the tiled website for more info but can't find any?

Also how are NPC put into the maps? What scripting is used? I think I heard something about LUA and I'm quite familiar with that from the PSP homebrew scene.
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: 01 Nov 2007, 18:35
Location: Internet

Post by Jaxad0127 » 11 Jan 2008, 05:39

Make sure the tilesets are in the "../graphics/tiles/" folder (this is from the maps folder). A good way to do this is to extract all the update zip sin order into a folder and use stuff there or get it all from subversion.
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: 13 Apr 2004, 20:11
Location: Italy
Contact:

Re: Problems with Tiled .6.1 and questions about other thing

Post by ElvenProgrammer » 11 Jan 2008, 10:22

MerlinX420 wrote:Also how are NPC put into the maps? What scripting is used? I think I heard something about LUA and I'm quite familiar with that from the PSP homebrew scene.
On the current server (eAthena) NPCs are stand alone scripts in a custom language.
On tmwserv we embed npcs into maps using LUA scripting language, if you're interested in helping read here: http://forums.themanaworld.org/viewtopic.php?t=3421
User avatar
MerlinX420
Warrior
Warrior
Posts: 575
Joined: 23 Dec 2007, 05:42

well that dosn't help....

Post by MerlinX420 » 11 Jan 2008, 12:03

All the tiles are in place in the above mentioned folder. Still I can't seem to get tiled to load an already created map. Also HOW are the NPC's embedded in the map?
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: 01 Nov 2007, 18:35
Location: Internet

Re: well that dosn't help....

Post by Jaxad0127 » 11 Jan 2008, 16:24

MerlinX420 wrote:All the tiles are in place in the above mentioned folder. Still I can't seem to get tiled to load an already created map. Also HOW are the NPC's embedded in the map?
With script files the server parses. Each npc is given a map, (x, y) coordinates, sprite, and script (and some more from the looks of it, but those four are the important stuff).
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Post by Crush » 11 Jan 2008, 17:28

Are you talking about eAthena (current server) or TMWServ (new server in development)?

eAthena:
NPCs are created by global script files on the server. You can find the scripts on the SVN repository in server-data/trunk/npc/

TMWServ:
There are two ways to put NPCs on maps.

a) as map object embedded in the map file
b) spawned by an external script file which is referenced in the map file

You can find examples for both methods on the map new_1-1.tmx in the trunk client repository tmw/trunk/data/maps (open it with a text editor). The referenced "test.lua" is in tmwserv/trunk/data. The LUA library tmwserv/trunk/data/scripts/libtmw.lua which does a lot of "behind the scenes" stuff might be interesting, too.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
MerlinX420
Warrior
Warrior
Posts: 575
Joined: 23 Dec 2007, 05:42

tiled and npcs

Post by MerlinX420 » 12 Jan 2008, 20:11

I got tiled to work correctly. I just had to relocate the tiles and maps. (Duh!)

Thanks for the info Crush. I was wondering both ways ,but I wanted to know the new ones. I'm still having trouble building the new SVN, but thats the one I want to concentrate learning the LUA coding methods used. I found the XML scripts you were describing after I started to dig a little further.
Post Reply