hello (SOLVED)

Experienced Elementalist
Joined
Mar 16, 2019
Messages
210
Reaction score
64
Hello my friends, I wanted to know what the function of this symbol is inside databasesave.cpp

in function : void CDbManager::SaveOneItem( CItemElem* pItemElem, PItemStruct pItemStruct )
Captura de tela 2025-08-21 200957 - hello (SOLVED) - RaGEZONE Forums


I'm adding the weapon level to soulseller so I want to know what it's for, if it has a line break function because without the "/" before the weapon level function it doesn't compile, it gives an error, I'm sorry if I'm being ignorant or very dumb, but searching on the internet I saw that there is a division function but only the / without the ""

Thanks in advance
 
First, i highly recommend learning some c++, you will have a much easier time, if you understand what's going on - even if it's just a little bit.
Second, always post the error and perhaps which source you are taking the system from, i'd assume its the Flyff Majestics.
Break down the whole entry you see, and you might find the issue.

Code:
            "%d,%d,%d,%d,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d"
#ifdef __WEAPON_LEVELING
            ",%d,%d"
#endif // __WEAPON_LEVELING
#ifdef __WEAPON_RARITY
            ",%d"
#endif // __WEAPON_RARITY
#ifdef __SWITCH_GLOW_OLDNEW
            ",%d"
#endif // __SWITCH_GLOW_OLDNEW
#ifdef __AELION_RAMASSEUR
            ",%d"
#endif // __AELION_RAMASSEUR
#ifdef __CHIP_PLAYERSHOP
                ",%d"
#endif // __CHIP_PLAYERSHOP
            "/",

While its easy to follow, it's not that clear, lets change that.

Code:
            "%d,%d,%d,%d,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d"
            ",%d,%d"
            ",%d"
            ",%d"
            ",%d"
            ",%d"
            "/",
Much easier, without going deeper into it, you can see that those define each add something for the function to do.
Compare that to the clean version, and you find your "/".

Code:
"%d,%d,%d,%d,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d/",

Looking at this, you can find the /", entry. With this, we can assume that this is the issue you ran into.
I'd assume, if you remove the "/", things could work, but without any errors to follow or knowing anything about the changes you have done, it's just guesswork.

A thing to remember is, most sources with lots of systems/features/changes, can be so much different compared to any other source, especially a clean one. You will probably run into more things that are either not defined at all, or are in a place where it's hard to even find. Best bet is, if you are lucky, find another source, where the same system is available and compare those two too. That way you can make assumtions, of their structure and how they are implemented.
Hope it helps :)
 
Upvote 0
the "/" is a delimiter to separate items from the inventory string, since y'know, the inventory is stored as multiple giant strings. So, if you're putting one before weaponleveling, but there is another after, it'll destroy the inventory being written to the database which will cause incorrect reading. The code that Noco showed should work.
 
Upvote 0
First, i highly recommend learning some c++, you will have a much easier time, if you understand what's going on - even if it's just a little bit.
Second, always post the error and perhaps which source you are taking the system from, i'd assume its the Flyff Majestics.
Break down the whole entry you see, and you might find the issue.

Code:
            "%d,%d,%d,%d,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d"
#ifdef __WEAPON_LEVELING
            ",%d,%d"
#endif // __WEAPON_LEVELING
#ifdef __WEAPON_RARITY
            ",%d"
#endif // __WEAPON_RARITY
#ifdef __SWITCH_GLOW_OLDNEW
            ",%d"
#endif // __SWITCH_GLOW_OLDNEW
#ifdef __AELION_RAMASSEUR
            ",%d"
#endif // __AELION_RAMASSEUR
#ifdef __CHIP_PLAYERSHOP
                ",%d"
#endif // __CHIP_PLAYERSHOP
            "/",

While its easy to follow, it's not that clear, lets change that.

Code:
            "%d,%d,%d,%d,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d"
            ",%d,%d"
            ",%d"
            ",%d"
            ",%d"
            ",%d"
            "/",
Much easier, without going deeper into it, you can see that those define each add something for the function to do.
Compare that to the clean version, and you find your "/".

Code:
"%d,%d,%d,%d,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d/",

Looking at this, you can find the /", entry. With this, we can assume that this is the issue you ran into.
I'd assume, if you remove the "/", things could work, but without any errors to follow or knowing anything about the changes you have done, it's just guesswork.

A thing to remember is, most sources with lots of systems/features/changes, can be so much different compared to any other source, especially a clean one. You will probably run into more things that are either not defined at all, or are in a place where it's hard to even find. Best bet is, if you are lucky, find another source, where the same system is available and compare those two too. That way you can make assumtions, of their structure and how they are implemented.
Hope it helps :)
no, I'm not getting anything from majestics, not for now, but the error I was getting is that some items, like the glyph, had "%" instead of the status, and thank you very much for helping and yes, I don't know much c++, I'm learning and the flyff server that I like to play 3 based on this structure
 
Upvote 0
People really loves complicating things 🤦 just don't touch the parts that you're not familiar with without backing up your progress.
Good morning, man, as I said before, I asked about the function of that "/" because mine doesn't have it in Soulseller, and in the files I'm downloading, it does!
And yes, I always back up the files before adding any system.
 
Upvote 0
Good morning, man, as I said before, I asked about the function of that "/" because mine doesn't have it in Soulseller, and in the files I'm downloading, it does!

You must be misreading because it should be in all flyff. The difference is how it's shown because when you add more systems, you have to move the /. That's why you see in v15 normal, ending in /. Now I don't know if soulseller changed it but both blouflash v15 and the other v15 is like this.
sprintf( pItemStruct->szItem, "%d,%d,%d,%d,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d/",
 
Upvote 0
You must be misreading because it should be in all flyff. The difference is how it's shown because when you add more systems, you have to move the /. That's why you see in v15 normal, ending in /. Now I don't know if soulseller changed it but both blouflash v15 and the other v15 is like this.
sprintf( pItemStruct->szItem, "%d,%d,%d,%d,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d/",
Indeed.
 
Upvote 0
You must be misreading because it should be in all flyff. The difference is how it's shown because when you add more systems, you have to move the /. That's why you see in v15 normal, ending in /. Now I don't know if soulseller changed it but both blouflash v15 and the other v15 is like this.
sprintf( pItemStruct->szItem, "%d,%d,%d,%d,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d/",
No, I think you misinterpreted what I wrote, Souseller and Bouflash are all similar but I didn't talk about this part that you described, but even so, thank you very much, you have already cleared up this doubt for me.
 
Upvote 0
Back