Forum

> > Off Topic > how to make a map for love2d
Forums overviewOff Topic overviewLog in to reply

English how to make a map for love2d

5 replies
To the start Previous 1 Next To the start

Poll Poll

how to add a map to my love2d project without sti / with sti correctly

Only registered users are allowed to vote
by another map editor program
100.00% (2)
by another code
0.00% (0)
2 votes cast

old Poll how to make a map for love2d

blurr
User Off Offline

Quote
Hello , guys

from 2 days i was working on a love2d project for making a game
and i did the player and i added animations to it but when i tryied to add the map to love2d with sti by the following code :


1
2
3
4
5
6
7
8
9
function love.load()

 sti = require 'lib/sti'
  map = sti('maps/map.lua')   



function love.draw()
  map:draw()





after i saved this code and run it i got this error :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Error

lib/sti/init.lua:94: STI does not support external Tilesets.
You need to embed all Tilesets.


Traceback

[love "callbacks.lua"]:228: in function 'handler'
[C]: in function 'assert'
lib/sti/init.lua:94: in function 'init'
lib/sti/init.lua:49: in function 'sti'
main.lua:6: in function 'load'
[love "callbacks.lua"]:136: in function <[love "callbacks.lua"]:135>
[C]: in function 'xpcall'
[C]: in function 'xpcall'


note : all of the codes i put arent compelete i just put the code for the map load code

note : i made the map by tiled and after i finished it i exported the first map file as .tmx and after it i exported it as .lua file then i included the .lua file into my text editor by the code ^^^^



i just want help for this problem

old Re: how to make a map for love2d

blurr
User Off Offline

Quote
user Bowlinghead has written
Hey,
I´m sorry that it is not working! >:C
Did you try to google the problem yet?
Kind regards!
PS: According to the error, you messed up the TileSet




i cant beleive that , you helped me it worked

thanks very much for helping me

now i can continue the project

Thx
To the start Previous 1 Next To the start
Log in to replyOff Topic overviewForums overview