Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Bug Report
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 01-28-2011, 06:59 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
findlevel() Issue

Since the servers were moved it seems as if findlevel("levelname.nw"); no longer works for individual level files on a gmap serverside, I've tried echoing the name of the returned object but it is always null, I've tried using the /refreshfilelist RC command aswell as updating levels both individually and in the form of the GMAP but the problem remains, the levels exist and are properly playable just simply will no longer be found via the findlevel command, while non GMAP levels or a parameter of the gmap filename work fine, anybody else experiencing this elsewhere?
Reply With Quote
  #2  
Old 01-30-2011, 12:35 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Just me?
Reply With Quote
  #3  
Old 01-30-2011, 03:05 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
It never worked. On server side it sees the gmap as one big level.
Reply With Quote
  #4  
Old 01-30-2011, 10:18 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
It most certainly did work before, I've used it for several years for example in staff tools where warp locations are stored as specific .nw variables as opposed to gmap coordinates, which is helpful as if you update the size of the gmap these coordinates may no longer be valid.
Reply With Quote
  #5  
Old 01-30-2011, 10:30 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
There are getmapx(sublevelname) and getmapy(sublevelname)
Reply With Quote
  #6  
Old 01-30-2011, 10:35 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by Stefan View Post
There are getmapx(sublevelname) and getmapy(sublevelname)
I was aware of this, was just wondering if the fact you can no longer use findlevel("levelname.nw"); for gmap levels is an intentional thing or if it can possibly be restored.
Reply With Quote
  #7  
Old 01-30-2011, 11:31 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by ffcmike View Post
I was aware of this, was just wondering if the fact you can no longer use findlevel("levelname.nw"); for gmap levels is an intentional thing or if it can possibly be restored.
fowlplay4 prob: level list is not supported anymore

might have something to do with that.
__________________
Quote:
Reply With Quote
  #8  
Old 01-31-2011, 12:55 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
It was not possible before, eventually it still worked on your server because the levels were still in memory and the npcserver not restarted after adding the gmap.
Reply With Quote
  #9  
Old 01-31-2011, 01:23 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Is there a function for determining a gmap from a specified .nw file parameter?, as getmapx/getmapy do not tell you what the gmap name is, so say you're working off a list you'd have to store the name of the gmap, and if you're wanting to tie the x/y coordinates to a specific .nw level you'd have to store the name of that also, whereas before you only required that one .nw filename.
Reply With Quote
  #10  
Old 02-01-2011, 12:27 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by ffcmike View Post
Is there a function for determining a gmap from a specified .nw file parameter?
Would be nice if there was a function for this (can't seem to find one through /scripthelp in RC or the wiki) so I don't have to do stuff like:

PHP Code:
public function getGMAP(temp.lvl){
  
temp.getmapx(temp.lvl) * 64;
  
temp.getmapy(temp.lvl) * 64;
  for(
temp.serveroptions.gmaps){
    
temp.obj findlevel(temp.".gmap");
    if(
temp.obj.getmappartfile(temp.xtemp.y) == temp.lvl){
      return {
temp.objtemp.xtemp.y};
    }
  }
  return 
NULL;

PHP Code:
temp.obj findlevel(temp.lvlname);
if(
temp.obj == NULL){
  if(
levelexists(temp.lvlname)){
    
temp.controlnpc.getGMAP(temp.lvlname);
    return {
temp.l[0], temp.l[1] + temp.xtemp.l[2] + temp.y};
  }


Last edited by ffcmike; 02-01-2011 at 05:33 PM..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:33 AM.


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