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:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upgrade live server
Author Message
Eledrianek
Apprentice
*

Posts: 21
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Aug 2014
Reputation: 0



Post: #1
Upgrade live server
Hi,
I want to upgrade my live shard to newer version of SphereServer. Right now we are using this one:
"Sphere Version 0.56b [WIN32] by http://www.sphereserver.com, compiled at Sep 20 2009 (20:00:04)"

Our server is highly customized. Using script pack or sth like that is not an option. I need to make it work with our scripts only.
I would like to start using many of new features and hoping for better stability too. But could you tell me what things I need to do to convert my scripts or settings? Its clear to me that some problems appear in process itself but I want to be ready as much as possible and had as much knowledge in advance.

Thanks for any help...
08-15-2014 07:11 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #2
RE: Upgrade live server
First off you need merge your sphere.ini with the newest one.
Then you will have to merge the scripts changes if needed on base pack, ie: sphere_defs, etc...

After that you run you server and see if it is working as you want.

Any other question, feel free to ask.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
08-15-2014 09:24 AM
Find all posts by this user Like Post Quote this message in a reply
Eledrianek
Apprentice
*

Posts: 21
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Aug 2014
Reputation: 0



Post: #3
RE: Upgrade live server
Thanks for your reply.

Please, could you recommend me what stable build I should use? I need stable and bug-free (as much as possible) build. I dont know if I should use prerelease, nightly ... or....?

Thanks
(This post was last modified: 08-15-2014 10:07 AM by Eledrianek.)
08-15-2014 09:57 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #4
RE: Upgrade live server
I recommend the lastest nightly but keep in mind it can get new bugs while older bugs are fixed.
But last builds we had a lot of changes and the dev team is working hard to fix the new bugs quickly, just read the svn log http://sphere.torfo.org/log/ and you will see that we have many updates per week.
So, if your last build is fault or buggy, the next one will be good.

We have to accept the bugs and wait the fixes or do it ourself.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
08-15-2014 01:11 PM
Find all posts by this user Like Post Quote this message in a reply
Eledrianek
Apprentice
*

Posts: 21
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Aug 2014
Reputation: 0



Post: #5
RE: Upgrade live server
Hi,
I started the work on the upgrade... and I have few questions.

I know the reason why this error appears, but Im looking for some easier way to fix it in wholesale:
Code:
17:15:ERROR:(brneni_barevne.scp,2469)Setting new id for base type i_rusty_ringmail_tunic not allowed
Is some makro or sth else exist to move BASEID to ITEMDEF directly?

Another mass occurrence of the errors while new build starting is this one:
Code:
17:15:ERROR:UID=0430cd7ac, id=04762 'Shadow Ringmail Tunic', Invalid code=2230 (Item equipped in the trade window layer but it isn't a trade window)
Please could you tell me why is this happend?

Another error:
Code:
18:09:ERROR:(brneni_obleceni.scp,63)Item:Hitpoints assigned for non-weapon i_robe_necromancer_great

And last:
Code:
17:15:CRITICAL:"Access Violation" (0x13740f), in CChar::CanMoveWalkTo() #1 "Check Valid Move"
17:15:ERROR:Item (0319e) has no definition in scripts.
17:15:DEBUG:__ thread (39384) __ |  # | _____ function _____________ | ticks passed from previous function start ______
17:15:DEBUG:>>         39384     |  0 |               CWorld::OnTick | +0
17:15:DEBUG:>>         39384     |  1 |              CSector::OnTick | +0
17:15:DEBUG:>>         39384     |  2 |                CChar::OnTick | +62
17:15:DEBUG:>>         39384     |  3 |      CChar::NPC_OnTickAction | +0
17:15:DEBUG:>>         39384     |  4 |        CChar::NPC_Act_GoHome | +0
17:15:DEBUG:>>         39384     |  5 |       CChar::NPC_WalkToPoint | +0
17:15:DEBUG:>>         39384     |  6 |       CChar::NPC_Pathfinding | +0
17:15:DEBUG:>>         39384     |  7 |     CPathFinder::CPathFinder | +0
17:15:DEBUG:>>         39384     |  8 |         CPathFinder::FillMap | +0
17:15:DEBUG:>>         39384     |  9 |         CChar::CanMoveWalkTo | +0 <-- exception catch point (below is guessed and could be incorrect!)
17:15:DEBUG:>>         39384     | 10 |        CChar::CheckValidMove | +0
17:15:DEBUG:>>         39384     | 11 |   CWorld::GetHeightPoint_New | +0
17:15:DEBUG:>>         39384     | 12 |      CItemBase::FindItemBase | +0

Thanks for any help
(This post was last modified: 08-16-2014 02:11 AM by Eledrianek.)
08-16-2014 02:10 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #6
RE: Upgrade live server
Code:
17:15:ERROR:(brneni_barevne.scp,2469)Setting new id for base type i_rusty_ringmail_tunic not allowed
This happens when you have the same item defined 2 or more times.. like repeated items with same itemdef.

Another mass occurrence of the errors while new build starting is this one:
Code:
17:15:ERROR:UID=0430cd7ac, id=04762 'Shadow Ringmail Tunic', Invalid code=2230 (Item equipped in the trade window layer but it isn't a trade window)
The items have wrong layer set on them. They must have the right layer.
Check if after the error appear, try .gouid UID and see if the item still existing. If yes, there is nothing to worry.
If they are removed, you will have to find all of them and send it to somewhere like player backpack or bank.

Another error:
Code:
18:09:ERROR:(brneni_obleceni.scp,63)Item:Hitpoints assigned for non-weapon i_robe_necromancer_great
Not sure, but nothing to worry.

And last:
Code:
17:15:CRITICAL:"Access Violation" (0x13740f), in CChar::CanMoveWalkTo() #1 "Check Valid Move"
17:15:ERROR:Item (0319e) has no definition in scripts.
17:15:DEBUG:__ thread (39384) __ |  # | _____ function _____________ | ticks passed from previous function start ______
17:15:DEBUG:>>         39384     |  0 |               CWorld::OnTick | +0
17:15:DEBUG:>>         39384     |  1 |              CSector::OnTick | +0
17:15:DEBUG:>>         39384     |  2 |                CChar::OnTick | +62
17:15:DEBUG:>>         39384     |  3 |      CChar::NPC_OnTickAction | +0
17:15:DEBUG:>>         39384     |  4 |        CChar::NPC_Act_GoHome | +0
17:15:DEBUG:>>         39384     |  5 |       CChar::NPC_WalkToPoint | +0
17:15:DEBUG:>>         39384     |  6 |       CChar::NPC_Pathfinding | +0
17:15:DEBUG:>>         39384     |  7 |     CPathFinder::CPathFinder | +0
17:15:DEBUG:>>         39384     |  8 |         CPathFinder::FillMap | +0
17:15:DEBUG:>>         39384     |  9 |         CChar::CanMoveWalkTo | +0 <-- exception catch point (below is guessed and could be incorrect!)
17:15:DEBUG:>>         39384     | 10 |        CChar::CheckValidMove | +0
17:15:DEBUG:>>         39384     | 11 |   CWorld::GetHeightPoint_New | +0
17:15:DEBUG:>>         39384     | 12 |      CItemBase::FindItemBase | +0
Check your sphere.ini for walk flags and tell us whats your option flags.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
08-16-2014 02:38 AM
Find all posts by this user Like Post Quote this message in a reply
Eledrianek
Apprentice
*

Posts: 21
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Aug 2014
Reputation: 0



Post: #7
RE: Upgrade live server

Thank you for your quick answer.

The first problem is related to origin lots of our items - to 51a age.
[itemdef 04555]
defname=i_golden_platemail_legs
name="Golden Platemail Legs"
id=01411

We are still using this number based itemdef. My question is if I have other choice than change every single item manually.

----

About the trade window layer...item is not existing anymore Shock( and logs takes more than 7k lines and I have no idea how to transfer this items to correct layer. Is this possible to track how this error arise some way?

---

About walk in .ini:
Code:
// Walk limiting code: buffer size (in tenths of second)
WalkBuffer=0

// Walk limiting code: regen speed (%)
WalkRegen=1000

// In game effects to turn on and off
// Messages echoed to the server console while in debug mode
// DEBUGF_NPC_EMOTE       00001
// DEBUGF_ADVANCE_STATS   00002
// DEBUGF_WALKCODES       00080 // try the new walk code checking stuff
// DEBUGF_EXP             00200 // experience gain/loss
// DEBUGF_LEVEL           00400 // experience level changes
// DEBUGF_SCRIPTS         00800 // debug flag for scripts
// DEBUGF_LOS             01000 // debug flag for AdvancedLOS
// DEBUGF_WALK            02000 // debug flag for new walking check stuff
// DEBUGF_PACKETS          04000 // log packets to file
// DEBUGF_NETWORK          08000 // debug flags for networking
//DebugFlags=00

OptionFlags=08|0200|00004000|00002000|00010000|00000080
(This post was last modified: 08-16-2014 03:01 AM by Eledrianek.)
08-16-2014 03:00 AM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #8
RE: Upgrade live server
The latest sphere clients allocate items way up to 09999 (and possibly higher) so yeah, you need to edit all those custom duplicate items to not use numbers in the itemdef. This explains why you are getting those odd trade window layer and hitpoint messages... because itemdef 04555 is probably a wall or some other unexpected thing and the server gets default values for stuff from the *mul or *uop files if they are not defined in the script etc.

More tips on upgrading:

* Carefully check your current sphere_spells.scp against the latest script pack... there are many changes in there relating to FLAGS and other things.
* Same goes for sphere_skills.scp file.
* Carefully check the current sphere_defs.scp file... there are LOTS of changes in there, especially relating to flags.
* Also sphere_msgs.scp needs to be up to date.
* Be careful of the "static" items in your world (items with ATTR that includes 08000)... make sure they are not being deleted/lost during a world save.
(This post was last modified: 08-16-2014 03:20 AM by RanXerox.)
08-16-2014 03:19 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes RanXerox's post
Eledrianek
Apprentice
*

Posts: 21
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Aug 2014
Reputation: 0



Post: #9
RE: Upgrade live server
Thank you for your reply. I already fix the problem with numbers in itemdef which - as you said - fix other problems with layer and hitpoints.

But now Im facing different problem - with houses. I cant figure how I can transfer our houses to new version and I add defs_2.scp to our scripts and I tried to unite defnames.
Gem bit with t_multi is place properly but house is not visible. I register the changes about multidefs but I cant successfully even one house.

What is the correct procedure? Our homes are defined as follows:
Code:
[itemdef 0406a]
Name=Small Wood House
type=t_multi
VALUE=1739
category=multis
subsection=Houses
description=Small Wood House
REGIONFLAGS=region_antimagic_recall_in|region_antimagic_gate|region_antimagic_te​leport|region_flag_nobuilding
MULTIREGION=-3,-3,3,4
COMPONENT=i_door_wood,0,3,7
COMPONENT=i_sign_brass_2,2,4,5
tspeech=spk_house_cmds
defname=i_multi_small_wood_house
tag.max_lockdowns=40
tag.max_containers=5

on=@create
f_house_built

And I transfer this script into this format:
Code:
[MULTIDEF 06a]
DEFNAME=i_multi_house_stone_wood_small
Name=Small Wood House
type=t_multi
VALUE=1739
category=multis
subsection=Houses
description=Small Wood House
REGIONFLAGS=region_antimagic_recall_in|region_antimagic_gate|region_antimagic_te​leport|region_flag_nobuilding
MULTIREGION=-3,-3,3,4
COMPONENT=i_door_wood,0,3,7
COMPONENT=i_sign_brass_2,2,4,5
tspeech=spk_house_cmds
tag.max_lockdowns=40
tag.max_containers=5

on=@create
f_house_built

And still no success...ifve tried different approach too but ...

[Image: 2e1g2dk.jpg]
(This post was last modified: 08-16-2014 10:16 AM by Eledrianek.)
08-16-2014 10:10 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #10
RE: Upgrade live server
Are you using .debug ?

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
08-16-2014 01:02 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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