English can't change monsters from rpgtibia

25 replies
Goto Page
To the start Previous 1 2 Next To the start
Up
lenovo
GAME BANNED
Offline Off
Hello users, i can't edit any monster GFX.

I read the monster.lua and have : (example)

Code:
1
2
Name = Ratata, Health = 50 , Speed = 5
monster gfx : gfx/pokemon/ratata.png


Now I go to gfx/pokemon and replace the ratata with my monster edit, and rename with the same name.

Later I open my server and the ratata is invisible.

(ratata.png is an example, the original is 1.png)

I check the console and says:

IMG:http://s4.postimg.org/x3g85g7zh/tibia.jpg


can't load image, i use png format and the background is invisible, everything is normal with the image but not with the script or console or tibia or blalbadawdm

∗ Can you help me please ?

> I already have tested in anothers tibia but nobody works.
Banned again, how many accounts i will need create?
17.04.14 09:31:12 am
Up
Accurator
User
Offline Off
It's loading the image in gfx/PP/MONSTERS named 1.png. Did you change the script to:
Code:
1
2
Name = Ratata, Health = 50 , Speed = 5
monster gfx : gfx/PP/MONSTERS/1.png


And after that move that file to gfx/pokemon and rename it to ratata.png? If so, either change the script back to:
Code:
1
2
Name = Ratata, Health = 50 , Speed = 5
monster gfx : gfx/pokemon/ratata.png


Or put your monster image back in gfx/PP/MONSTERS and rename it 1.png
18.04.14 09:11:59 pm
Up
lenovo
GAME BANNED
Offline Off
@user Accurator: I did everything you said, the problem is in the script.

The code is correct, I only replaces the image with the same name.
Banned again, how many accounts i will need create?
18.04.14 09:16:27 pm
Up
Accurator
User
Offline Off
Maybe you should search for the part in the code that calls for gfx/PP/MONSTERS/1.png? If you find it, show me it.
18.04.14 09:32:39 pm
Up
lenovo
GAME BANNED
Offline Off
Monsters.lua :

Code:
1
2
3
4
5
6
CONFIG.MONSTERS = {
     {
          name = 'Ratata', health = 100, image = 'gfx/PP/MONSTERS/1.png', scalex = 2, scaley = 2, 
          atk = 1.5, def = 1.5, spd = 5, atkspd = 5, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 50, runat = 20, spawn1 = {0, 0}, spawn2 = {110, 125}, 
          exp = 125, money = 100, loot = {{chance=1000,id=512},{chance=250,id=520}}, 
     },


gfx/PP/MONSTERS :

IMG:http://s13.postimg.org/yybycsfdj/edit.png


The ratata image is 1.png

I only replace the image with the same name, but the error continues :

IMG:http://s27.postimg.org/3u7p9wqsz/tibia.jpg
Banned again, how many accounts i will need create?
19.04.14 09:11:17 am
Up
EngiN33R
Moderator
Offline Off
Well, the image isn't 1.png, it's 1.PNG. The case of the extension might matter.
I code, therefore I exist. | Visit my blog for Lua tips and other interesting info
19.04.14 09:36:43 am
Up
Sparty
Reviewer
Offline Off
@user EngiN33R: kk, Now I understand it, Because You know already and I know now and understanding it.. BECAUSE The lua couldn't find the file/image with the same name Which you done it.

ummm...close it?
user DC has written:
@user omg: Actually a pretty good idea...
19.04.14 12:04:42 pm
Up
MikuAuahDark
User
Offline Off
@user EngiN33R: No, it doesn't
file cs2d LuaJIT for Dedicated Server (13) JIT POWER! | Know your Lua errors! | Part of LÖVE development team since 11.3
19.04.14 12:09:47 pm
Up
DreadMare
User
Offline Off
Well, the name is 1.PNG so it would be 1.PNG.png
19.04.14 12:13:42 pm
Up
Rainoth
Moderator
Offline Off
@user DreadMare: Possible, but what if he enabled a setting to show extensions in names (I have that enabled for example) so it could be not the case..
MAL • DeviantArt • For Wallpaper Engine users • Check YT for playlists... •
19.04.14 12:39:58 pm
Up
Accurator
User
Offline Off
I think it's the size. Try to make 1.PNG the same size as the ratata picture. Just add more invisible pixels to fill it up.
19.04.14 12:51:17 pm
Up
Infinite Rain
Reviewer
Offline Off
@user Accurator:
Doesn't make sense.
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
19.04.14 01:00:09 pm
Up
Accurator
User
Offline Off
Well, I've had that some times.
19.04.14 01:12:35 pm
Up
DreadMare
User
Offline Off
@user Accurator: Size doesn't matter. It's the name that is incorrect or somethings up with his monster.lua
19.04.14 01:25:39 pm
Up
Accurator
User
Offline Off
And how would you know that? Have you had EXACTLY the same problem before?
19.04.14 01:32:24 pm
Up
DreadMare
User
Offline Off
@user Accurator: Yes

"gfx/weiwen/pokemon/19.png" is ratata. I named it 19.PNG and in game It wouldnt show and it showed the exact same problem as him. I named the path to gfx/weiwen/pokemon/19.PNG.png, and guess what? It Worked!

Go on.. Go test
19.04.14 02:09:54 pm
Up
Accurator
User
Offline Off
Yeah, sure. But the script is calling for "gfx/PP/MONSTERS/1.png" and not for "gfx/PP/MONSTERS/1.PNG.png"
19.04.14 02:40:16 pm
Up
DreadMare
User
Offline Off
@user Accurator: The script can't LOAD gfx/PP/MONSTERS/1.png because it doesnt EXIST in his GFX/MONSTERS/PP/.. That's why he needs to CHANGE the name.
19.04.14 02:43:11 pm
Up
Accurator
User
Offline Off
Gosh, do I need to say it again? It's not trying to load 1.PNG.png but 1.png.
19.04.14 04:49:12 pm
Up
EngiN33R
Moderator
Offline Off
user DreadMare has written:
@user Accurator: The script can't LOAD gfx/PP/MONSTERS/1.png because it doesnt EXIST in his GFX/MONSTERS/PP/.. That's why he needs to CHANGE the name.

You're awfully certain about that, but it might be a possibility. OP should try it.

@user Sparty: You're not OP so why are you telling me to close it? It's great that you understand, but we're yet to receive a response from user lenovo.
I code, therefore I exist. | Visit my blog for Lua tips and other interesting info
To the start Previous 1 2 Next To the start