The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Strangest Error EVER!
Author Message
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #1
Strangest Error EVER!
According to by errors reported in the sphere console, this is the line giving me an error:

Code:
item={ backpack_poor 1 backpack_meager 1 backpack_average 1 backpack_rich 1 }

now, after testing where this error could be, I //commented out all possibilities yet I am still given the same error by the sphere console. Here is the code I tracked the error too and made the //comments to:

Code:
[template backpack_poor]
defname=backpack_poor
category=item templates
subsection=loot templates
description=poor backpack
//container=i_backpack
//item={ random_food 1 0 3 },{1 3}
//item={ random_bottle 1 0 8 }
//item={ random_light 1 0 8 }
//item={ random_male_tops 1 0 4 }
//color=colors_all
//item={ random_male_pants 1 0 4 }
//color=colors_all
//item=poor_gold_pile

[template backpack_meager]
defname=backpack_meager
category=item templates
subsection=loot templates
description=meager backpack
//container=i_backpack
//item={ random_food 1 0 2 },{1 4}
//item={ random_bottle 1 0 6 }
//item={ random_light 1 0 6 }
//item={ random_hats 1 0 9 }
//item=meager_gold_pile

[template backpack_average]
defname=backpack_average
category=item templates
subsection=loot templates
description=average backpack
//container=i_backpack
//item={ random_food 1 0 1 },{2 6}
//item={ random_bottle 1 0 4 },{1 3}
//item={ i_torch 1 0 4 },{ 1 3 }
//item={ i_cape 1 0 9 }
//color=colors_all
//item=average_gold_pile

[template backpack_rich]
defname=backpack_rich
category=item templates
subsection=loot templates
description=rich backpack
//container=i_backpack
//item={ random_food 2 0 1 },{3 8}
//item={ random_bottle 1 0 2 },{1 5}
//item={ i_torch 1 0 2 },{ 1 5 }
//item={ i_cape 1 random_over_armor 1 0 9 }
//color=colors_all
//item={ random_jewelry 1 0 2 }
//item=rich_gold_pile

[template backpack_loaded]
defname=backpack_loaded
category=item templates
subsection=loot templates
description=filthy rich backpack
//container=i_backpack
//item={ random_food 3 0 1 },{4 10}
//item={ random_bottle 1 0 1 }
//item={ i_torch 1 0 1 },{ 1 7 }
//item={ random_jewelry 1 0 1 }
//item=filthy_rich_gold_pile

I'm totally stumped so I figure it must be some sort of mix-up in the sphere code. I can't see any error on my part, this has gotta be fixed or my sphere will be squished.
Nevermind, the error squashed me. Had to restart the server to solve this nigga.
(This post was last modified: 06-25-2012 08:18 PM by Skul.)
06-25-2012 07:59 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Edel[EdC]
Apprentice
*

Posts: 11
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #2
RE: Strangest Error EVER!
What is your error message?
06-25-2012 09:39 PM
Find all posts by this user Like Post Quote this message in a reply
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #3
RE: Strangest Error EVER!
Oh sorry, I posted that I solved it. The error was bad template defs, such as [template 1050160], those numbers hadda be changed to a proper word-like defname, like [template random_coin_purse], it solved all the stupid errors + the vendor templates had to be redone too. Afterwards all the errors were gone and everything was back to normal.
Also, I had to do a server restart for the effects to properly take place. Damn templates are such a pain!
OH AND, I had to redo the top part of spheredefs.scp where all the random_xx items were posted as a [defname], had to convert those into templates and stuffed 'em in sphere_templates.scp. Took hours!
(This post was last modified: 06-26-2012 08:23 AM by Skul.)
06-26-2012 08:22 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)