Jump to content
  • 0

Question

When I start my server it has 2 ghost errors that are not in the script it is saying it is in. We had errors with these words while setting up the server but we have fixed all errors.

post-4988-0-68280600-1391074659_thumb.png

Edited by snowflake1963

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Hello Anakid:

 

You are wrong and did not read my request properly !

 

We checked this script uncountable times.

 

1) The word "monster" or "Monster" is in that script, but in lowercase letters.

2) The word "Emperium" does not appear in that script.

3) When we take this script out of the init.conf ( using comment // ), the message gives that script before which does NOT contain one of those two "Codewords".

 

To us it seems the server saved error-messages somewhere and gives them now at the end of all loaded NPC scripts instead clearing this unknown, hidden error-storage.

 

The server works fine, but it's annoying and confusing to see that messages.

 

Regards

 

Snowflake

Edited by snowflake1963

Share this post


Link to post
Share on other sites
  • 0

Here is another screen shot of the same errors the DOES NOT EXIST IN ANY OF OUR SCRIPTS, we have checked all scripts numerous times. plus now the map server says there is 3 autotraders online after being shut down for over night, they are my chars and i have logged on all 3 accts and exited to windows and shut down the server and restarted it and they still appear. WHY? Please HELP !!!

post-4988-0-36343800-1391582630_thumb.png

Edited by snowflake1963

Share this post


Link to post
Share on other sites
  • 0

Do you have items or mobs with those names? AegisNames in the Item DB and SpriteNames in the mob DB are used by the script engine for things like

getitem Red_Potion, 1;monster "prontera", 150, 150, "Pink Jelly", PORING, 1;
and as such, they can't be duplicate (and can't be the same as script variables.

 

The first error is telling you that you have a something with the same name as the 'monster' script command. You can safely ignore it, but if you want to silence it, find this code in script.c:

#ifdef ENABLE_CASE_CHECK	if( (strncmp(p, ".@", 2) == 0) ) // Local scope vars are checked separately to decrease false positives		existingentry = script->local_casecheck.add_str(p);	else {		existingentry = script->global_casecheck.add_str(p);		if( existingentry ) {			if( strcasecmp(p, "disguise") == 0 || strcasecmp(p, "Poison_Spore") == 0			 || strcasecmp(p, "PecoPeco_Egg") == 0 || strcasecmp(p, "Soccer_Ball") == 0			 || strcasecmp(p, "Horn") == 0 || strcasecmp(p, "Treasure_Box_") == 0			 || strcasecmp(p, "Lord_of_Death") == 0			  ) // Known duplicates, don't bother warning the user				existingentry = NULL;		}	}	if( existingentry ) {		DeprecationWarning2("script_add_str", p, existingentry, script->parser_current_file); // TODO	}#endif // ENABLE_CASE_CHECK
and add another '|| strcasecmp(p, "monster") == 0' to the condition.

Or simply rename your variable/item's AegisName to something else if you prefer not to make a source edit for this.

 

Second error is usually because of a mob named EMPERIUM. Rename it to MY_EMPERIUM, or EMPERIUM_, so that it won't conflict with the 'Emperium' item AegisName.

 

In any case, I improved a little the error reports, so that it no longer shows the last script it parsed, when it doesn't have any idea about the error source.

Share this post


Link to post
Share on other sites
  • 0

Hello Haru :) ,

 

I changed my mob_db2 as you told ( EMPERIUM => EMPERIUM_ ) and added

|| strcasecmp(p, "Monster") == 0

to script.c
 

Both Errors are gone now. :)

 

Thank you very very very much !!!!! :)

 

Best Regards

 

Snowflake

Edited by snowflake1963

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.