Poll

Should I add increased BLID gathering abilities to Support_Updater and make a public, searchable list of BLIDs and names?

Yes
34 (81%)
No
8 (19%)

Total Members Voted: 42

Author Topic: Support_Updater  (Read 54527 times)

Is there any way to just have it pop up the first time you go to the main menu for the day? I prefer it to just be a once a day thing rather than whenever I start up BL, but it's pretty rude when it pops up in the middle of action.

Edit: Also a good place would be in the network tab.

When is it popping up when it shouldn't be?

When is it popping up when it shouldn't be?
It's popping up at 12:00 AM, even when I'm in a server.

It's popping up at 12:00 AM, even when I'm in a server.

Ah, right. I'll make sure it only does the 12:00 AM update checks on dedicated servers.

I just tried to start a dedicated server for the first time on my new computer with windows 10, but it stops during startup.

//-------------------------- 8/22/2015 -- 23:54:06 -----
Processor Init:
   Intel Core, ~3.93 Ghz
     (timed at roughly 3.93 Ghz)
   FPU detected
   MMX detected
   SSE detected
 
Math Init:
   Installing Standard C extensions
   Installing Assembly extensions
   Installing FPU extensions
   Installing MMX extensions
   Installing SSE extensions
 
Input Init:
   DirectInput enabled.

Blockland v21 build 1967
Module Directory: C:/Users/Name/Documents/Blockland
Profile Path: C:/Users/Name/Documents/Blockland
Total Ram: 16319 MB
OS:  (build 9200), 64-bit

--------- Parsing Arguments ---------
argc = 5
argv[2] = -dedicated
argv[3] = -nosteam
argv[4] = -trace
Parsing command line arguments: -dedicated -nosteam -trace
   Console trace is on.
Leaving parseArgs() - return
--------- Loading Common ---------
Entering loadDir(base)
   Entering pushBack(Add-Ons;config;saves, base, ;)
   Leaving pushBack() - return Add-Ons;config;saves;base
   Loading compiled script base/main.cs.
Leaving loadDir() - return
Loading compiled script base/client/Defaults.cs.
Loading compiled script base/server/Defaults.cs.
Executing config/client/prefs.cs.
Executing config/server/prefs.cs.
Executing config/server/ADD_ON_LIST.cs.
Executing config/server/musicList.cs.
--------- Loading MODS ---------
Entering loadMods(Add-Ons;config;saves)
   Entering loadMods(config;saves)
      Entering loadMods(saves)
      Leaving loadMods() - return
      Executing config/main.cs.
      
Pre-Loading Add-On: Support_Updater
      Executing Add-Ons/Support_Updater/preload.cs.
      Executing Add-Ons/Support_Updater/dedicated.cs.
      Executing Add-Ons/Support_Updater/common.cs.
      Executing Add-Ons/Support_Updater/common/support/Support_DateTime.cs.
      Executing Add-Ons/Support_Updater/common/support/Support_LibStr.cs.
      Executing Add-Ons/Support_Updater/common/support/Support_PreLoad.cs.
      Executing Add-Ons/Support_Updater/common/support/Support_SemVer.cs.
      Executing Add-Ons/Support_Updater/common/support/Support_TCPClient.cs.
      Executing Add-Ons/Support_Updater/common/support/Support_TMLParser.cs.
      Activating package: Support_TMLParser
      Executing Add-Ons/Support_Updater/common/support/jettison.cs.
      Executing Add-Ons/Support_Updater/common/core/Updater.cs.
      Executing Add-Ons/Support_Updater/common/core/UpdaterAddOnSO.cs.
      Executing Add-Ons/Support_Updater/common/core/UpdaterAddOnHandlerSG.cs.
      Executing Add-Ons/Support_Updater/common/core/UpdaterRepoSO.cs.
      Executing Add-Ons/Support_Updater/common/core/UpdaterRepoHandlerSG.cs.
      Executing Add-Ons/Support_Updater/common/core/UpdaterFileDownloadHandlerSG.cs.
      Executing Add-Ons/Support_Updater/common/modules/statistics.cs.
      Activating package: updaterStatistics
      Entering updater::onAdd(8213)
         Entering UpdaterRepoHandlerSG::onAdd(8214)
         Leaving UpdaterRepoHandlerSG::onAdd() - return 8215
         Entering UpdaterFileDownloadHandlerSG::onAdd(8217)
         Leaving UpdaterFileDownloadHandlerSG::onAdd() - return
         Entering UpdaterRepoSO(http://mods.greek2me.us/third-party)
            Updater add repository http://mods.greek2me.us/third-party
         Leaving UpdaterRepoSO() - return 8220
         Entering UpdaterAddOnHandlerSG::readLocalFiles(8216)
            Updater reading files.
            Entering UpdaterAddOnHandlerSG::_readFileInfoTXT(8216, Add-Ons/Support_Updater/version.txt, 8221)
               Entering UpdaterAddOnHandlerSG::storeFileInfo(8216, Support_Updater, 0.11.0+release-20150821, release, mods.greek2me.us, , )
                  Entering UpdaterRepoHandlerSG::getObjectByURL(8214, mods.greek2me.us)
                     Entering urlGetComponents(mods.greek2me.us)
                     Leaving urlGetComponents() - return http^mods.greek2me.us^80^/^
                     Entering urlGetComponents(http://mods.greek2me.us/third-party)
                     Leaving urlGetComponents() - return http^mods.greek2me.us^80^/third-party/^
                  Leaving UpdaterRepoHandlerSG::getObjectByURL() - return 0
                  Entering UpdaterRepoSO(mods.greek2me.us, , )
                     Updater add repository mods.greek2me.us
                  Leaving UpdaterRepoSO() - return 8222
                  Entering UpdaterAddOnHandlerSG::getObjectByName(8216, Support_Updater)
                  Leaving UpdaterAddOnHandlerSG::getObjectByName() - return 0
                  Entering UpdaterAddOnSO(Support_Updater, 0.11.0+release-20150821, release, , )
                  Leaving UpdaterAddOnSO() - return 8223
                  Entering UpdaterAddOnSO::hasRepository(8223, 8222)
                  Leaving UpdaterAddOnSO::hasRepository() - return 0
                  Entering UpdaterAddOnSO::addRepository(8223, 8222, )
                  Leaving UpdaterAddOnSO::addRepository() - return 1
               Leaving UpdaterAddOnHandlerSG::storeFileInfo() - return 8223
            Leaving UpdaterAddOnHandlerSG::_readFileInfoTXT() - return 8223
            Entering UpdaterAddOnHandlerSG::_readFileInfoTXT(8216, Add-Ons/Gamemode_Slayer/version.txt, 8221)
               Entering UpdaterAddOnHandlerSG::storeFileInfo(8216, Gamemode_Slayer, 3.9.2+release-20141110, release, mods.greek2me.us, , )
                  Entering UpdaterRepoHandlerSG::getObjectByURL(8214, mods.greek2me.us)
                     Entering urlGetComponents(mods.greek2me.us)
                     Leaving urlGetComponents() - return http^mods.greek2me.us^80^/^
                     Entering urlGetComponents(mods.greek2me.us)
                     Leaving urlGetComponents() - return http^mods.greek2me.us^80^/^
                  Leaving UpdaterRepoHandlerSG::getObjectByURL() - return 8222
                  Entering UpdaterAddOnHandlerSG::getObjectByName(8216, Gamemode_Slayer)
                  Leaving UpdaterAddOnHandlerSG::getObjectByName() - return 0
                  Entering UpdaterAddOnSO(Gamemode_Slayer, 3.9.2+release-20141110, release, , )
                  Leaving UpdaterAddOnSO() - return 8224
                  Entering UpdaterAddOnSO::hasRepository(8224, 8222)
                  Leaving UpdaterAddOnSO::hasRepository() - return 0
                  Entering UpdaterAddOnSO::addRepository(8224, 8222, )
                  Leaving UpdaterAddOnSO::addRepository() - return 1
               Leaving UpdaterAddOnHandlerSG::storeFileInfo() - return 8224
            Leaving UpdaterAddOnHandlerSG::_readFileInfoTXT() - return 8224
         Leaving UpdaterAddOnHandlerSG::readLocalFiles() - return
         Entering DT_getDayDifference(08/22/15 01:21:30, 08/22/15 23:54:06)
            Entering DT_isLeapYear(15)
            Leaving DT_isLeapYear() - return 0
            Entering DT_isLeapYear(15)
            Leaving DT_isLeapYear() - return 0
         Leaving DT_getDayDifference() - return 0
         Entering updater::checkDayTick(8213, 08/22/15)
         Leaving updater::checkDayTick() - return 2
      Leaving updater::onAdd() - return 2
      Activating package: Support_Updater_DediServer
      Activating package: Support_Updater_DedicatedAuto
   Leaving loadMods() - return
Leaving loadMods() - return

Entering onStart()
  
--------- Initializing Base ---------
   Loading compiled script base/client/init.cs.
   Loading compiled script base/server/init.cs.
   Entering initCommon()
      Loading compiled script base/client/canvas.cs.
      Loading compiled script base/client/audio.cs.
   Leaving initCommon() - return
   Entering initServer()
      
--------- Initializing Base: Server ---------------------
      Initializing steamAPI...
        Steam disabled via -nosteam option
      Entering initBaseServer()
         Loading compiled script base/server/mainServer.cs.
      Leaving initBaseServer() - return $CrapOnCRC_517069892
      Loading compiled script base/server/scripts/game.cs.
   Leaving initServer() - return $CrapOnCRC_517069892
   Entering serverPart2()
      Initializing steamAPI...
        Steam disabled via -nosteam option
      Entering dedicatedKeyCheck()
         Entering [Support_Updater_DedicatedAuto]initDedicated()
            
--------- Checking for Add-On Updates ---------
         Leaving [Support_Updater_DedicatedAuto]initDedicated() - return
      Leaving dedicatedKeyCheck() - return
   Leaving serverPart2() - return
Leaving onStart() - return
Engine initialized...

The game isn't frozen though, entering commands works fine:



Removing Support_Updater fixes the problem. Any ideas what causes this?




Edit: Looks like it works now. You definitely have to add a timeout, if it can't connect in one second, start without checking for updates.

It started working exactly at 00:00. Coincidence?



Edit 2: It's now 17:58 and it's not working again.
« Last Edit: August 23, 2015, 10:59:33 AM by Zeblote »

Do you have the latest version of Support_Updater?

Do you have the latest version of Support_Updater?
It updated itself like 1 or 2 days ago so I assume it is

Maybe this is a side effect of making it only check at midnight?

Looks like it works between 00:00 and 11:59, but not between 12:00 and 23:59.


Hey, i just came here to ask, I just create a dedicated server with addons but how can i update addons?

Thanks Zeblote, I probably broke it in the last update. I'll take a look.

Hey, i just came here to ask, I just create a dedicated server with addons but how can i update addons?

Follow the instructions here: https://bitbucket.org/Greek2me/support_updater/wiki/Dedicated%20Server%20Updates

Your server will then notify you when updates are available.

I should try figuring out some tool to help manage repositories... hm.
Are there any JSON repositories I can look at as an example?

You can look at http://blocklandglass.com/api/support_updater/repo.php?mods=11-30-36-112 if you'd like. There's currently a bug with the change-logs, however.

I noticed that any package that's activated during the "preload" period is deactivated before ordinary add-ons are executed. I got around that by appending a little script to ADD_ON_LIST.cs, but just wanted to make sure that you're aware of that.

I should try figuring out some tool to help manage repositories... hm.
I change my mind actually after seeing that, it looks like BLG already does what I would've done.

I noticed that any package that's activated during the "preload" period is deactivated before ordinary add-ons are executed. I got around that by appending a little script to ADD_ON_LIST.cs, but just wanted to make sure that you're aware of that.

Is there really no better way? That file is executed and rewritten quite a lot, and something that isn't an add-on variable shouldn't be in it.

« Last Edit: August 28, 2015, 02:41:20 PM by Greek2me »