SphereCommunity

Full Version: Strangest Error EVER!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
What is your error message?
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!
Reference URL's