Stronghold save credits v7 (03/03/2022)

Maps, modifications, add-ons, projects, and other releases for Zandronum. Also includes announcers.
Post Reply
User avatar
penguin
 
Posts: 82
Joined: Tue Aug 28, 2018 5:05 am
Location: Japan
Contact:

Stronghold save credits v7 (03/03/2022)

#1

Post by penguin » Mon Oct 18, 2021 3:28 am

I created a mod that can save Stronghold credits and map progress.
Spoiler: How to use (client) (Open)
Create an account just like any other database mod, and then log in.
Once you are logged in and join the game, it will load automatically.
If you log in later, you can assign LoadCredits in the key bindings and press the key to load it.
To save when changing maps or after selecting Quit Game, select "With save and disconnect from server".
Spoiler: How to use (server) (Open)
Configure the database as you would any other database mod.
Global bank and map progress will be saved without accounts.
Spoiler: Loadoder(original) (Open)
strnghld_v1.pk3
~~other addon~~
stronghold_save_credits_v*.pk3
~~other addon~~
Spoiler: Loadoder(Rejuvinated) (Open)
strnghld_v1.pk3
strnghld_violence_v4.pk3
strongholdeditsnfixesv1.1patchv4.1.pk3
strongholditemsv7.1.pk3
strongholdrejuvenated-v6d.pk3
~~other addon~~
stronghold_save_credits_v*.pk3
~~other addon~~
Spoiler: Loadoder(samsarahold) (Open)
strnghld_v1.pk3
strnghld_violence_v4.pk3
strongholdeditsnfixesv1.1patchv4.1.pk3
strongholditemsv7.1.pk3
samsaraholdrejuvenated-core-v6d.pk3
samsaraholdrejuvenated-maps-v6d.pk3
~~other addon~~
stronghold_save_credits_v*.pk3
~~other addon~~

Link
https://github.com/PenguinDOOM/strongho ... ses/latest

Source code
https://github.com/PenguinDOOM/stronghold_save_credits
Spoiler: Change log (Open)
v7
--------------------------------------------------------------
This is minor update, but it's v7 because it uses the new features of 3.1
Optimizing network traffic using the new features added in 3.1
Removed Server/Client check codes.
Fixed code that doesn't work.

v6
--------------------------------------------------------------
Improved performance by removing the while loop.
Rewrote the binary detection code.
BCSUtils is now used.
Rewrote a lot of codes.
Many other fixes, changes, and undiscovered bugs added.

v5_1
--------------------------------------------------------------
Fixed a bug that caused a binary check every time.
Fixed v4 changelog.
Added "Display_Progress" command

How to use "Display_Progress"
-----------------------
] pukename Display_Progress [Map number](optional argument)
-----------------------
This prints all progress to the client's console.
Adding an argument will print the progress of the map accordingly.
It only shows whether the map has been cleared or not, it does not show the clear time.


v5_fixed
--------------------------------------------------------------
Fixed admin menu.


v5
--------------------------------------------------------------
Added admin menu.
Added the server binary detection function.
Most of the code has been rewritten.


v4_fixed
--------------------------------------------------------------
Fixed a bug where credits weren't saved after the stage ended.


v4
--------------------------------------------------------------
Can now save the completed stage.
Added "Remove_ServerData" command

How to use "Remove_ServerData"
-----------------------
] pukename Remove_ServerData (0 or 1)
-----------------------
If nothing is added or 0 is added as an argument, only the server bank will be deleted.
If you add 1 to the argument, the completed stage data will be deleted.
Both go to MAP99 after enter.


v3
--------------------------------------------------------------
"StrPaidInitialBankFee" is now saved. Now you don't have to pay 800 credits every time to use the bank.
You can now load credits on the way, not just when you join. You can bind from control options.
Now saved when disconnected. (There is a note. For details, read the comment from line 195 of the source code.)
Added a script to monitor credits so they are preserved when disconnected. You can change the monitoring interval from the console. Default is interval = 1 (1tic)
Added a script to clear the contents of the database. If you use it, you cannot load and save until you reconnect. (Pukename Clear_Credits)
The "Show_Credits" command can now check if a bank can be used.
------------------------
] pukename Show_Credits
------------------------
Paid fee: False or True (here)
Database paid fee: False or True (here)
Your credits: 0 ~
Your database credits: 0 ~
Bank credits: 0 ~
Bank databse credits: 0 ~
------------------------

Use variables instead of cvar.
Some code has been modified / changed.
The code has become more complex and less readable.
There should be some bugs added that are not yet known.


v2
--------------------------------------------------------------
Added saving bank credits(strongholdrejuvenated required)
Changed loaded check from inventory to user cvar.
Clarified the "Show_Credits" command.(pukename show_credits)

Already available in TSPG, DUD and Euroboros.
https://allfearthesentinel.net/zandronu ... ?user=2904
https://dudoomers.com/zandronum/wads.php?user=77
https://euroboros.net/zandronum/wads.php?user=84
Last edited by penguin on Wed Mar 02, 2022 4:56 pm, edited 3 times in total.

User avatar
penguin
 
Posts: 82
Joined: Tue Aug 28, 2018 5:05 am
Location: Japan
Contact:

Re: Stronghold save credits v7 (03/03/2022)

#2

Post by penguin » Wed Mar 02, 2022 4:46 pm

Update v7!
Spoiler: Changelog (Open)
This is minor update, but it's v7 because it uses the new features of 3.1
Optimizing network traffic using the new features added in 3.1
Removed Server/Client check codes.
Fixed code that doesn't work.
Spoiler: Download (Open)

Post Reply