Jump to content
  • 0

problem with instance "World?something...."


hakuren

Question


  • Group:  Members
  • Topic Count:  120
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   6
  • Joined:  12/02/11
  • Last Seen:  

i got error i just testing this script by 

Vincent

 

i try new_1-4 map but i get error and then crash

 

i search for solution they say duplicate the map but it already duplicated by new_zone04.rsw/gat/gnd and i already recompile it to mapcache. 

 

what should i do with this?

 


prontera,156,174,5 script testing 873,{

set .@instance, instance_create("Training", getcharid(1));
if( .@instance < 0 )
{
mes "Failed to create the instance!";
close;
}
if( instance_attachmap("new_1-4", .@instance) == "" )
{
  instance_destroy(.@instance);
mes "Failed to attach the map!";
close;
}
instance_attach(.@instance);
instance_set_timeout(3600, 300, .@instance);
instance_init(.@instance);
warp "new_1-4",0,0;
 
}
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

the old instance system, the map name has to be

<single digit number>@<seven characters long>
example

1@tower

2@cash

2@g_vs

 

//For Map Names, which the client considers to be 16 in length including the .gat extension

#define MAP_NAME_LENGTH (11 + 1)

#define MAP_NAME_LENGTH_EXT (MAP_NAME_LENGTH + 4)

maximum map name without .gat is 12

the server will create 001 as the unique instance ID

means there's only 9 character left for your map name

new_1-4 will definitely crash your client

try something like 4@novice

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

If you are using late rA version ( r17386+ ). The following commands are removed : 

instance_attachmap
instance_attach
instance_set_timeout
instance_init
instance_detachmap
has_instance

therefore your script would cause an error. Maybe you can give the error message on your console?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  120
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   6
  • Joined:  12/02/11
  • Last Seen:  

If you are using late rA version ( r17386+ ). The following commands are removed : 

instance_attachmap
instance_attach
instance_set_timeout
instance_init
instance_detachmap
has_instance

therefore your script would cause an error. Maybe you can give the error message on your console?

 

no error at all just that client crash

the old instance system, the map name has to be

<single digit number>@<seven characters long>
example

1@tower

2@cash

2@g_vs

 

//For Map Names, which the client considers to be 16 in length including the .gat extension

#define MAP_NAME_LENGTH (11 + 1)

#define MAP_NAME_LENGTH_EXT (MAP_NAME_LENGTH + 4)

maximum map name without .gat is 12

the server will create 001 as the unique instance ID

means there's only 9 character left for your map name

new_1-4 will definitely crash your client

try something like 4@novice

 

thanks annie it works now your the best :)

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...