Jump to content
  • 0

Creating Instance Nullpo Error


gekigengar

Question


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   2
  • Joined:  08/30/13
  • Last Seen:  

Hello, I am trying to create an instance.

.@instance$ = "Crossroad Dimension";
.@create = instance_create(.@instance$);
if (.@create < 0) 
{
  mes "Error creating instance :";
  switch (.@create) 
  {
    case -1: mes "Invalid type."; break;
    case -2: mes "Party not found."; break;
    case -3: mes "Instance already existed."; break;
    case -4: mes "No free instance available."; break;
  }
}

Right now its giving me the Invalid Type error.

I have added my instance at Instance_db

18,Crossroad Dimension,120,cross_i,88,208,cross_i

And my map existed on map_index

cross_i

and maps_athena

map: cross_i

The mapserver is giving me a strange error.

--- nullpo info ---------------------------
instance.c:370: in func 'instance_create'

Anyone knows what went wrong?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  141
  • Reputation:   45
  • Joined:  08/14/12
  • Last Seen:  

This is the part of the code that's the problem:

struct instance_db *db = instance_searchname_db(name);

nullpo_retr(-1, db);

The name you pass into instance_create is not being found in the instance database.

EDIT: Looking further into this, the entry in instance_db.txt is incorrect. The correct format is:

// ID,Name,LimitTime,IdleTimeOut,EnterMap,EnterX,EnterY,Map2,Map3,...,Map255

 

Edited by Nitrous
  • Upvote 2
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   2
  • Joined:  08/30/13
  • Last Seen:  

12 hours ago, Nitrous said:

This is the part of the code that's the problem:


struct instance_db *db = instance_searchname_db(name);

nullpo_retr(-1, db);

The name you pass into instance_create is not being found in the instance database.

EDIT: Looking further into this, the entry in instance_db.txt is incorrect. The correct format is:


// ID,Name,LimitTime,IdleTimeOut,EnterMap,EnterX,EnterY,Map2,Map3,...,Map255

 

Aside from the incorrect entry, it seems like inserting only on import/instance_db wouldn't do anything.

I have to update my re/instance_db to get it working.

(Not sure if this is an intended behavior)

Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...