Subject: "pbf bug?" Previous topic | Next topic
Printer-friendly copy Email this topic to a friend CF Website
Top General Discussions Gameplay Topic #48683
Show all folders

IsildurThu 31-Jan-13 09:46 AM
Member since 04th Mar 2003
5969 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#48683, "pbf bug?"


          

These are both from Nabigah's PBF:

Wed Jun 1 00:19:07 2011 by 'An Immortal' at level 16 (12 hrs):
An Immortal added 2000 exp for: Great story about a good man, tricked into doing evil things for love and power that never panned out. He's a spy for the Sultan charged to infiltrate Scion and slowly gets warped into being evil.

Role
Chapter 1
Fate Set In Motion
Added Mon Jun 20 21:15:49 2011 at level 20:

Is one of those dates wrong? If not, how did he get role exp before actually entering the first chapter of his role?

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

Reply Known memory leak, Rayihn, 30-Jan-13 09:12 AM, #1
     Reply Having lost my 2k exp role I have a theory, incognito, 30-Jan-13 01:55 PM, #2
     Reply RE: Having lost my 2k exp role I have a theory, Daevryn, 30-Jan-13 09:11 PM, #6
          Reply RE: Having lost my 2k exp role I have a theory, N b M, 30-Jan-13 09:21 PM, #7
          Reply It's Nabighah's role (n/t), Daevryn, 30-Jan-13 09:22 PM, #8
               Reply RE: It's Nabighah's role (n/t), N b M, 30-Jan-13 09:42 PM, #14
          Reply RE: Having lost my 2k exp role I have a theory, Isildur, 30-Jan-13 09:43 PM, #9
               Reply RE: Having lost my 2k exp role I have a theory, Daevryn, 30-Jan-13 10:29 PM, #10
               Reply RE: Having lost my 2k exp role I have a theory, Vilhazarog, 31-Jan-13 01:18 AM, #12
                    Reply I don't know who JSON is, but..., Scarabaeus, 01-Feb-13 08:51 AM, #15
               Reply RE: Having lost my 2k exp role I have a theory, Zulghinlour, 31-Jan-13 12:38 AM, #11
                    Reply RE: Having lost my 2k exp role I have a theory, Isildur, 31-Jan-13 02:09 AM, #13
     Reply Or bitch them out for having no role., TMNS, 30-Jan-13 04:35 PM, #3
     Reply I entered a role contest once, Rayihn, 30-Jan-13 06:09 PM, #4
     Reply This exact same thing happened with one of my Herald ~ ..., hadashdakon, 30-Jan-13 08:09 PM, #5

RayihnWed 30-Jan-13 09:12 AM
Member since 08th Oct 2006
1147 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#48686, "Known memory leak"
In response to Reply #0


          

It's unfortunately pretty much impossible to track down this memory leak but every once in a while it'll chow down someone's role. Usually we'll have the person just re-enter it for a 0 xp add.

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

    
incognitoWed 30-Jan-13 01:55 PM
Member since 04th Mar 2003
4495 posts
Click to add this author to your buddy list
#48691, "Having lost my 2k exp role I have a theory"
In response to Reply #1


          

That if the mud goes down while you have a role entry in the process of being written, it may result in the loss of previous role entries.

This is based on only the fact that I was adding a role chapter when the mud crashed, and when I logged back in my uber-role was also gone.

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

        
DaevrynWed 30-Jan-13 09:11 PM
Member since 13th Feb 2007
11117 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#48716, "RE: Having lost my 2k exp role I have a theory"
In response to Reply #2


          

Don't think that's it -- I've been hit by it twice in not-that circumstances.

But it does seem to eat bigger roles more frequently. Woe are my twelve-chapter tragic-love epics.

I got a note in response to my role contest entry for that one saying something along the lines of, "I heard this role was really good, but since it's blank I can't judge it." I then went something like seven more months without a win.

Which, you know, not every role I write is gold, but I think this is my best one in a while.

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

            
N b MWed 30-Jan-13 09:21 PM
Member since 29th Sep 2005
444 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#48717, "RE: Having lost my 2k exp role I have a theory"
In response to Reply #6


          

Oh?

If you think it is a good role (and you are done with the character), you should go ahead and post it so we can enjoy the read.

Unless of course you are the type to recycle roles...

<"that was a low blow, try to keep the gloves up!">

Chris.

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

                
DaevrynWed 30-Jan-13 09:22 PM
Member since 13th Feb 2007
11117 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#48718, "It's Nabighah's role (n/t)"
In response to Reply #7


          

See PBF!

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

                    
N b MThu 31-Jan-13 09:46 AM
Member since 29th Sep 2005
444 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#48719, "RE: It's Nabighah's role (n/t)"
In response to Reply #8


          

Ya know, for as much as we laid down punishment on people the few times we actually were online at the same time...

Gosh, I am a terrible ex-chancellor for not following through and reading all of the former scion's roles.

Bah.

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

            
IsildurWed 30-Jan-13 09:43 PM
Member since 04th Mar 2003
5969 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#48720, "RE: Having lost my 2k exp role I have a theory"
In response to Reply #6


          

Out of curiosity, how are role entries stored? Relational database? Files on the file system?

If someone does "role add" and can see the role as "added" then it seems pretty odd for it to subsequently disappear. I say that not to make any sort of accusation; it's just really "weird" behavior.

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

                
DaevrynWed 30-Jan-13 10:29 PM
Member since 13th Feb 2007
11117 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#48723, "RE: Having lost my 2k exp role I have a theory"
In response to Reply #9


          

It's part of the pfile, so in memory but also the filesystem.

It's easy as #### to leak memory in C. Alas. If I ever became independently wealthy I might rewrite the game in C# or something.

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

                    
VilhazarogThu 31-Jan-13 01:18 AM
Member since 30th Aug 2012
192 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#48727, "RE: Having lost my 2k exp role I have a theory"
In response to Reply #10


          

Blasphemy!! You should write the whole thing in Java, ditch the ridiculous area file format for JSON and store everything in MongoDB.

Honestly it would be pretty straight forward except possibly the network code.

For the non-programmers out there, the problem with C is that you can make a variable (pointer) point to anywhere in memory, and then write there. And that spot happens to be outside your data or code space then the operating system will just crash your program (seg fault). Your less lucky if you accidentally write somewhere in your data or code space because then completely unpredictable things can happen. These bugs are hard to track down because the memory corruption could affect any totally unrelated part of your program. It could trash data, alter the code, etc. it could be a random bug in an mprog somewhere can be trashing random roles of players that might be on the other side of Thera, and then once the pfile is saved to disk it is gone forever.

This is one of the reasons few people write in C anymore, outside of high performance applications that need to be as close to the hardware as possible.

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

                        
ScarabaeusFri 01-Feb-13 08:51 AM
Member since 19th Feb 2011
1524 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#48787, "I don't know who JSON is, but..."
In response to Reply #12


  

          

Sounds like someone needs to come back on staff and show us how it's done.

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

                
ZulghinlourThu 31-Jan-13 12:38 AM
Member since 04th Mar 2003
9792 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#48725, "RE: Having lost my 2k exp role I have a theory"
In response to Reply #9


          

>Out of curiosity, how are role entries stored? Relational
>database? Files on the file system?

Flat file on the drive.

>If someone does "role add" and can see the role as "added"
>then it seems pretty odd for it to subsequently disappear. I
>say that not to make any sort of accusation; it's just really
>"weird" behavior.

As Daev mentioned, in C it's fairly easy to overwrite/corrupt a data structure if you're not really careful, especially one as big and full of strings as the player data.

So long, and thanks for all the fish!

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

                    
IsildurThu 31-Jan-13 02:09 AM
Member since 04th Mar 2003
5969 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#48729, "RE: Having lost my 2k exp role I have a theory"
In response to Reply #11


          

Definitely.

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

    
TMNSWed 30-Jan-13 04:35 PM
Member since 10th Jun 2009
2670 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#48696, "Or bitch them out for having no role."
In response to Reply #1


          

*grumbles like a cantankerous old man in his bitterness*

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

        
RayihnWed 30-Jan-13 06:09 PM
Member since 08th Oct 2006
1147 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#48710, "I entered a role contest once"
In response to Reply #3


          

Marcatis took the time to write me a note explaining that you need to have a role in order to enter role contest. Newb.

Le sigh.

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

    
hadashdakonWed 30-Jan-13 08:09 PM
Member since 29th Mar 2009
9 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#48713, "This exact same thing happened with one of my Herald ~ ..."
In response to Reply #1


          

I believe Iunna pulled me aside after she had added my role EXP and told me the role was gone- I had to re-enter about a week after I received the EXP.

Seriously guys- #### happens

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

Top General Discussions Gameplay Topic #48683 Previous topic | Next topic