Jump to content
For maintenance and updates, the community will be offline on 31 December 2022 ×
  • 0

Offshop Shutdown Bug


blaxis

Question

Hello, I'm not sure if it's just me, whatever you call this bug/problem, but it's very strange.

Let me summarize the event as follows, computer and Virtual Box etc. When I first open and start the game, the offline shop's edit mode works without any problems. It continues to work smoothly in this way until I close the game and open it.

But after this stage, for any reason, when I close the game with sh stop.sh and open it again with start.sh, this time the editing mode enters the bug and during the editing process, it says "The market has been updated, it will be active in 5 seconds" from the bottom as if the self-editing is finished. unlocking the market. (Meanwhile the edit mode is still on)

Syserr vs nothing.
I think it comes from this line in char.cpp:

 

if(ch->GetShopEditMode() && get_global_time() - ch->GetShopEditModeTick() > 5)
    ch->SetShopEditMode(false);

But I couldn't see a problem here, because it's the same everywhere. I think there is a problem with get_global_time() but unfortunately I couldn't solve it. Does anyone have any knowledge or experience the same?

 

GREAT OFFLINE SHOP

Edited by blaxis
Link to comment
Share on other sites

  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

3 answers to this question

Recommended Posts

  • 0

I have great offline shop and i don't see this problem, i can edit shops, before and after stopping server etc, 

Where you have this function and was version of Great are you using?

Quote

if(ch->GetShopEditMode() && get_global_time() - ch->GetShopEditModeTick() > 5) ch->SetShopEditMode(false);

i don't have this in my version.

tell me to try help u.

Edited by nazox

KH.jpg

Nicks: Nazox Krone Nagato Yahiko Yakiro
Proyecto: Trabajando en el.
Compañeros & firma: DreamHQ  - 2009-2015 [Nostalgia]

Link to comment
Share on other sites

  • 0
17 hours ago, nazox said:

I have great offline shop and i don't see this problem, i can edit shops, before and after stopping server etc, 

Where you have this function and was version of Great are you using?

i don't have this in my version.

tell me to try help u.

This code unlocks the market 5 seconds after editing is finished. When I remove the code, the market is not unlocked and cannot be viewed, even if the edit is finished.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 0

      Where are those maps/dungeons coming from?

    2. 4

      Visual studio 2022 compiling issue

    3. 1

      Count players function

    4. 64
    5. 1

      Costume shining/costume effect system

    6. 992

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    7. 3

      Biologist Manager (C++ & LUA)

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.