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
worldgem producing to much worldchars
Author Message
Berkley
Journeyman
*

Posts: 54
Likes Given: 28
Likes Received: 2 in 2 posts
Joined: Jul 2015
Reputation: 0



Post: #11
RE: worldgem producing to much worldchars
Sad bad luck.

after correcting all worldgems a lot of AMOUNT entries gone away automatically after saving the world. Then the error appears again and the gems are crowding my world.
I have no idea, what is causing this.
11-05-2015 03:17 AM
Find all posts by this user Like Post Quote this message in a reply
Berkley
Journeyman
*

Posts: 54
Likes Given: 28
Likes Received: 2 in 2 posts
Joined: Jul 2015
Reputation: 0



Post: #12
RE: worldgem producing to much worldchars
(11-02-2015 02:14 PM)Kanibal Wrote:  You can remove bad spawns.
Code:
[FUNCTION f_remove_bad_spawns]
FORITEMS 6144
    IF (<TYPE> == T_SPAWN_CHAR && !<AMOUNT>)
        REMOVE
    ENDIF
ENDFOR
...

Is it possible to create a function, that deletes all [Worldchars] which SERIAL=ID has no "married" [worldgem] with the same ID in "ADDOBJ="?


best regards, Lars
[/quote]
11-05-2015 04:19 AM
Find all posts by this user Like Post Quote this message in a reply
Kanibal
Master
**

Posts: 257
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #13
RE: worldgem producing to much worldchars
(11-05-2015 04:19 AM)Berkley Wrote:  which SERIAL=ID has no "married" [worldgem] with the same ID in "ADDOBJ="?

Grandmaster Localhost Admin
11-05-2015 02:41 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Berkley
Journeyman
*

Posts: 54
Likes Given: 28
Likes Received: 2 in 2 posts
Joined: Jul 2015
Reputation: 0



Post: #14
RE: worldgem producing to much worldchars
(11-05-2015 02:41 PM)Kanibal Wrote:  
(11-05-2015 04:19 AM)Berkley Wrote:  which SERIAL=ID has no "married" [worldgem] with the same ID in "ADDOBJ="?

well, the healthy way a worldgem is producing a worldchar is like this:
(if i understand right):


[WORLDITEM i_worldgem_bit]
...
AMOUNT=1
MORE2=01
ADDOBJ=03925
...
seems to be bound with (sorry for using the metaphoric married)
[WORLDCHAR c_bullfrog]
...
SERIAL=03925
...

ADDOBJ=SERIAL (03925=03925)


now after a while my worldgem produces more and more "wild" worldchars like this
and deletes the "AMOUNT=1" automatically:

 
[WORLDITEM i_worldgem_bit]
...
MORE2=01
ADDOBJ=03925
...
seems not to be bound with
[WORLDCHAR c_bullfrog]
...
SERIAL=0a92a
...

ADDOBJ≠SERIAL (03925≠029ba)

Is the creation of a function possible, that deletes all that "wild" worldchars?

best regards, Lars
(and sorry about my english, i'm not an english native speaker)
11-05-2015 06:04 PM
Find all posts by this user Like Post Quote this message in a reply
Kanibal
Master
**

Posts: 257
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #15
RE: worldgem producing to much worldchars
Sorry, I'm not using nightly builds, so I haven't "ADDOBJ" or "married worldgem's".

You can also try this tool tot delete bad spawn's:

Grandmaster Localhost Admin
11-05-2015 06:20 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #16
RE: worldgem producing to much worldchars
Resuming: sometimes the AMOUNT property is not working as it should and spawns generates aditional monsters, right? I'll take a look in a few hours in the source.
11-05-2015 09:27 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes XuN's post
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #17
RE: worldgem producing to much worldchars
my npc spawns keep coming up with the wrong color and wrong items

sometimes they work, sometimes they dont...

i need to learn to stop using the nightlys... everytime it breaks more than it fixes

Dragons of Time 2000-2020
http://dragonsoftime.com
11-05-2015 10:03 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #18
RE: worldgem producing to much worldchars
Then stop using them, it's boring seeing you all the time flaming here, seriously.

You might try something: do something on the source in your free time and then let is flame what you did. If you want to have something bug-free go to official servers of any game (oh wait, they also have bugs).

EDIT: At least use the correct post, this one is related to another thing. Does anyone else have this problem with last nightly? I cannot replicate it since the fix was sent.
(This post was last modified: 11-05-2015 10:18 PM by XuN.)
11-05-2015 10:16 PM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #19
RE: worldgem producing to much worldchars
quit making nightlys, and make it monthlys like i suggested years ago...

you leave stuff unfinished for too long =)

Dragons of Time 2000-2020
http://dragonsoftime.com
11-06-2015 01:09 AM
Find all posts by this user Like Post Quote this message in a reply
roberpot
Moderator
****

Posts: 48
Likes Given: 4
Likes Received: 12 in 8 posts
Joined: Apr 2014
Reputation: 0



Post: #20
worldgem producing to much worldchars
Nightlys are for testing. If you want a stable and free-of-bugs release you can try the last release or... clone the code and help sphereserver!
11-06-2015 02:04 AM
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)