Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Code Gallery (https://forums.graalonline.com/forums/forumdisplay.php?f=179)
-   -   Pixel Perfect Tile Editor (https://forums.graalonline.com/forums/showthread.php?t=134267103)

xAndrewx 10-06-2016 04:17 PM

1 Attachment(s)
Odd - we have this function which saved the level?

Crono 10-07-2016 12:18 AM

Quote:

Originally Posted by xAndrewx (Post 1740148)
Odd - we have this function which saved the level?

off topic but i like the other guy's walk sprite

edit: aw man i just zoomed in and noticed it's prob just an idle animation after you punch or something

Kamaeru 10-07-2016 04:15 AM

1 Attachment(s)
Quote:

Originally Posted by xAndrewx (Post 1740148)
Odd - we have this function which saved the level?

Here's what I'm looking at.

http://forums.graalonline.com/forums...1&d=1475806430

There was no 1.4 version of this available on the links in this thread that I saw, maybe that's the issue? Also no update button, just a save button that appears to not work. Thanks for helping, if I can get this to work it will save me a ton of time and I can get all of the level work finished practically by myself.

Kamaeru 10-07-2016 06:33 AM

Now I've updated the script to 1.4 and I have the update level option. Still having problems. Now when I try to update the level it tells me that I haven't given the npcserver proper rights, even though I have.

xAndrewx 10-07-2016 09:56 AM

I had to re-script this function for it to work -

HTML Code:

function getLevelFilePath(temp.levelName) {
  temp.path = findfiles(temp.levelName, 1);
  if (temp.path == null) return;

  return temp.path[0].substring(7);


    /*  -- OLD
  temp.fileList = {};
  temp.fileList.loadfolder("levels/*", 1);
  for (temp.filePath: temp.fileList) {
    temp.fileName = extractfilename(temp.filePath);
    if (temp.fileName == temp.levelName) {
      return temp.filePath;
    }
  }
  return NULL;
    */
}



All times are GMT +2. The time now is 04:29 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.