AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [Any]returns to the last map. (https://forums.alliedmods.net/showthread.php?t=314550)

AK978 02-24-2019 12:10

[Any]returns to the last map.
 
1 Attachment(s)
服務器開啟並返回上一個遊戲地圖。
server turn on , returns to the last map.
如果你不想返回上一個遊戲地圖,刪除 data\save_map.txt
If you don't want to go back to the previous game map, delete data\save_map.txt



說明:
地圖開始,保存地圖名稱 (data\save_map.txt)
第二次重啟,返回上一個遊戲地圖,若遊戲的地圖名稱與保存的地圖名稱相同則寫入預設 地圖
第三次重啟,返回預設地圖 (避免伺服器連續崩潰)
Description:
Start the map and save the map name (data\save_map.txt)
The second restart, return to the previous game map, if the map name of the game is the same as the saved map name, write the preset map
The third reboot, return to the default map (Avoid continuous server crashes)



Cvar:
sm_default_map "c1m1_hotel"
(you can change your default map, cfg\save_map.cfg)



version:
v1.0 new plugins
v1.1 use ForceChangeLevel



My plugins

Dragokas 02-26-2019 15:49

Re: [Any]The server is turn on and returns to the last game map.
 
Quote:

Avoid continuous server crashes
Do you mean your plugin somehow can resolve a problem with infinite server rebooting?
Do you beleave this happens because server try to load the last map where initial crash occured?

AK978 02-28-2019 15:43

Re: [Any]The server is turn on and returns to the last game map.
 
Avoid unlimited restarts on damaged maps

If the default mapping is not corrupted, it will not restart indefinitely.
If your plugin exception causes an infinite restart, it will still restart indefinitely.

Dragokas 02-28-2019 17:40

Re: [Any]The server is turn on and returns to the last game map.
 
No, I have another case: crash causes infinite restart on default map.

AK978 02-28-2019 17:56

Re: [Any]The server is turn on and returns to the last game map.
 
https://developer.valvesoftware.com/...d_Line_Options
-nocrashdialog (Stop showing some Windows crash message boxes)


Restart should be everything restarted, and should not be restarted indefinitely unless you have an unusual plugin

BloodyBlade 04-19-2024 09:38

Re: [Any]returns to the last map.
 
1 Attachment(s)
* Transfered to the latest syntax.


All times are GMT -4. The time now is 15:42.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.