This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[Any]returns to the last map.


Post New Thread Reply   
 
Thread Tools Display Modes
Author
AK978
Senior Member
Join Date: Jun 2018
Plugin ID:
6446
Plugin Version:
1.1
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    [Any]returns to the last map.
    Old 02-24-2019 , 12:10   [Any]returns to the last map.
    Reply With Quote #1

    服務器開啟並返回上一個遊戲地圖。
    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
    Attached Files
    File Type: sp Get Plugin or Get Source (savemap.sp - 525 views - 1.6 KB)

    Last edited by AK978; 11-28-2020 at 04:55.
    AK978 is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 02-26-2019 , 15:49   Re: [Any]The server is turn on and returns to the last game map.
    Reply With Quote #2

    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?
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    AK978
    Senior Member
    Join Date: Jun 2018
    Old 02-28-2019 , 15:43   Re: [Any]The server is turn on and returns to the last game map.
    Reply With Quote #3

    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.

    Last edited by AK978; 02-28-2019 at 15:47.
    AK978 is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 02-28-2019 , 17:40   Re: [Any]The server is turn on and returns to the last game map.
    Reply With Quote #4

    No, I have another case: crash causes infinite restart on default map.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    AK978
    Senior Member
    Join Date: Jun 2018
    Old 02-28-2019 , 17:56   Re: [Any]The server is turn on and returns to the last game map.
    Reply With Quote #5

    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

    Last edited by AK978; 02-28-2019 at 19:00.
    AK978 is offline
    BloodyBlade
    Senior Member
    Join Date: Feb 2018
    Old 04-19-2024 , 09:38   Re: [Any]returns to the last map.
    Reply With Quote #6

    * Transfered to the latest syntax.
    Attached Files
    File Type: sp Get Plugin or Get Source (savemap.sp - 19 views - 1.5 KB)
    BloodyBlade is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 10:02.


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