September 18, 2019, 12:09:49 PM

Author Topic: Warcraft Source 0.78 for Counterstrike Source & Global Offensive  (Read 31612 times)

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 889
  • Country: de
  • Pokemon Master!
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #75 on: January 27, 2018, 03:44:54 PM »
Using the newest version should create three configs in cfg/source-python/wcs

You are looking for those values in the wcs_core.cfg:

Code: [Select]
wcs_save_mode 1  //1 means time based, 0 means round based
wcs_save_delay 5 //this is the time in minutes that the repeat will take to save again

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 889
  • Country: de
  • Pokemon Master!
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #76 on: January 28, 2018, 12:43:53 AM »
Update:

  • Added MySQL support (not for levelbank yet though). This is currently untested and I'd appreciate feedback.

To access MySQL:

  • Change the value of wcs_database_method in wcs_core.cfg to "mysql"
  • Go to wcs/data and open database.ini and add your data
« Last Edit: January 28, 2018, 12:46:15 AM by Kami »

Offline Muerte

  • Administrator
  • Level 7 Expert
  • *****
  • Posts: 1856
  • Country: be
    • Fortitude
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #77 on: January 28, 2018, 12:07:23 PM »
I have a big concern for people updating the WCS to the latest version and accidentally overwriting their customized races.ini and items.ini. A lot of valuable time can be spent customizing those files and accidentally overwriting them with an update happens far too easily (and then you're fucked).

Therefore I suggest seperating the official WCS race pack/ race categories/ item pack/ etc to a different github repository that can simply be downloaded as a .zip as well, like the WCS mod.

I understand this would require one more installation step upon the original installation (one more zip to download, unpack and upload), but it vastly reduces the risk and complexity of updating WCS mod afterwards, whilst being able to keep the same file structure rather then needing to use races_default.ini or an approach of that sorts.

Edit: Furthermore, I would also suggest that custom racepacks would be published and maintained on github in a similar fashion from now on. It would encourage people to fix the bugs in them, rather then letting an unchanged archive with old bugs be spread around on the forums as has happened in the past.
« Last Edit: January 28, 2018, 12:29:41 PM by Muerte »
Anyways why you all code so late? Or early? Don't you guys sleep at all?
Sleep? What's that? Just put a wire up your arse and charge while you code during the night. Doesn't all do that, or is it just me??

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 889
  • Country: de
  • Pokemon Master!
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #78 on: January 28, 2018, 01:19:35 PM »
Update:

  • Added support for all available SQL Alchemy dialects

Databases are now handled via the connection string located in the wcs_core.cfg with the console variable

Code: [Select]
wcs_database_connectstring
which has the default set to a SQLite database created in the wcs/data folder

Code: [Select]
'sqlite:///csgo/addons/source-python/plugins/wcs/data/players.db'
Available dialects and how to create a connection string can be found at http://docs.sqlalchemy.org/en/latest/dialects/

Offline Romero

  • Level 0 Beginner
  • Posts: 16
  • Country: ru
  • Hi there! You're look nice :3
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #79 on: January 28, 2018, 07:31:50 PM »
Suddenly
Code: [Select]
[SP] Loading plugin 'wcs'...
[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/packages/source-python/plugins/command.py", line 162, in load_plugin
plugin = self.manager.load(plugin_name)
File "../addons/source-python/packages/source-python/plugins/manager.py", line 193, in load
plugin._load()
File "../addons/source-python/packages/source-python/plugins/instance.py", line 74, in _load
self.module = import_module(self.import_name)
File "../addons/source-python/plugins/wcs/wcs.py", line 48, in <module>
from wcs import admin
File "../addons/source-python/plugins/wcs/admin.py", line 23, in <module>
from wcs import levelbank
File "../addons/source-python/plugins/wcs/levelbank.py", line 117, in <module>
database = SQLiteManager(Path(ini_path).joinpath('data'))
File "../addons/source-python/plugins/wcs/levelbank.py", line 52, in __init__
self.connection = sqlite.connect(self.pathFile.joinpath('levelbank.sqlite'))
sqlite3.OperationalError: unable to open database file
[SP] Plugin 'wcs' was unable to be loaded.

Or that's my "straight" hands?
« Last Edit: January 28, 2018, 07:34:45 PM by Romero »

Offline Manifest

  • Race & effect creator
  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 1063
  • Country: dk
  • Content creator for the new WCS version by Kami.
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #80 on: January 28, 2018, 07:56:51 PM »
Suddenly
Code: [Select]
[SP] Loading plugin 'wcs'...
[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/packages/source-python/plugins/command.py", line 162, in load_plugin
plugin = self.manager.load(plugin_name)
File "../addons/source-python/packages/source-python/plugins/manager.py", line 193, in load
plugin._load()
File "../addons/source-python/packages/source-python/plugins/instance.py", line 74, in _load
self.module = import_module(self.import_name)
File "../addons/source-python/plugins/wcs/wcs.py", line 48, in <module>
from wcs import admin
File "../addons/source-python/plugins/wcs/admin.py", line 23, in <module>
from wcs import levelbank
File "../addons/source-python/plugins/wcs/levelbank.py", line 117, in <module>
database = SQLiteManager(Path(ini_path).joinpath('data'))
File "../addons/source-python/plugins/wcs/levelbank.py", line 52, in __init__
self.connection = sqlite.connect(self.pathFile.joinpath('levelbank.sqlite'))
sqlite3.OperationalError: unable to open database file
[SP] Plugin 'wcs' was unable to be loaded.

Or that's my "straight" hands?

Hi Romero, it's always nice to see you! :-)
Thank you for reporting this in :-)

Did you receive this error after updating to the newest version, or have you not downloaded the newest version yet? If this not the newest version I recommend updating to that. If you are on the newest version then let us know, then we'll be looking in to it. Thank you! :)

"BRAVORA: Bruh it is fucking operation crystal night when you are approving races."


Offline Romero

  • Level 0 Beginner
  • Posts: 16
  • Country: ru
  • Hi there! You're look nice :3
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #81 on: January 28, 2018, 08:00:24 PM »
Suddenly
Code: [Select]
[SP] Loading plugin 'wcs'...
[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/packages/source-python/plugins/command.py", line 162, in load_plugin
plugin = self.manager.load(plugin_name)
File "../addons/source-python/packages/source-python/plugins/manager.py", line 193, in load
plugin._load()
File "../addons/source-python/packages/source-python/plugins/instance.py", line 74, in _load
self.module = import_module(self.import_name)
File "../addons/source-python/plugins/wcs/wcs.py", line 48, in <module>
from wcs import admin
File "../addons/source-python/plugins/wcs/admin.py", line 23, in <module>
from wcs import levelbank
File "../addons/source-python/plugins/wcs/levelbank.py", line 117, in <module>
database = SQLiteManager(Path(ini_path).joinpath('data'))
File "../addons/source-python/plugins/wcs/levelbank.py", line 52, in __init__
self.connection = sqlite.connect(self.pathFile.joinpath('levelbank.sqlite'))
sqlite3.OperationalError: unable to open database file
[SP] Plugin 'wcs' was unable to be loaded.

Or that's my "straight" hands?

Hi Romero, it's always nice to see you! :-)
Thank you for reporting this in :-)

Did you receive this error after updating to the newest version, or have you not downloaded the newest version yet? If this not the newest version I recommend updating to that. If you are on the newest version then let us know, then we'll be looking in to it. Thank you! :)

Hello :D

Yes, ater updating to the newest version.

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 889
  • Country: de
  • Pokemon Master!
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #82 on: January 28, 2018, 08:05:06 PM »
Is this on a dedicated server on your machine or on a hosted server?

Offline Romero

  • Level 0 Beginner
  • Posts: 16
  • Country: ru
  • Hi there! You're look nice :3
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #83 on: January 28, 2018, 08:05:51 PM »
Is this on a dedicated server on your machine or on a hosted server?

Hosted server.

Offline Manifest

  • Race & effect creator
  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 1063
  • Country: dk
  • Content creator for the new WCS version by Kami.
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #84 on: January 28, 2018, 08:06:44 PM »
Therefore I suggest seperating the official WCS race pack/ race categories/ item pack/ etc to a different github repository that can simply be downloaded as a .zip as well, like the WCS mod.

We are currently working on this suggestion and it is anticipated that this will be a reality in the upcoming week. :-)


Furthermore, I would also suggest that custom racepacks would be published and maintained on github in a similar fashion from now on. It would encourage people to fix the bugs in them, rather then letting an unchanged archive with old bugs be spread around on the forums as has happened in the past.

Your suggestion has been taken into consideration and we've decided to go with it. In addition, we will try to make sure history doesn't repeat itself. Therefore we encourage everyone who find a bug to report it in, whether it is an entire skill not working correctly or typo in the tell messages, we would like you to report in all the errors and bugs you come across.
By doing so we can fix them up and ensure you and your players getting the best possible experience with the warcraft-source modification. :-)
"BRAVORA: Bruh it is fucking operation crystal night when you are approving races."


Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 889
  • Country: de
  • Pokemon Master!
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #85 on: January 28, 2018, 08:10:01 PM »
I am not sure where this error comes from. A fresh install of the latest version did not result in the same problem for me. Maybe it's a permissions problem with the host?

Offline Muerte

  • Administrator
  • Level 7 Expert
  • *****
  • Posts: 1856
  • Country: be
    • Fortitude
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #86 on: January 28, 2018, 08:12:47 PM »
Hosted server.
Make sure that the filepermissions on the levelbank.sqlite file are set to writeable (try putting it to 755)

We are currently working on this suggestion and it is anticipated that this will be a reality in the upcoming week. :-)
Nice, then I can remove the entry "How to update WCS mod safely?" from the FAQ (since it will be safe to do so to begin with) :))
« Last Edit: January 28, 2018, 08:15:56 PM by Muerte »
Anyways why you all code so late? Or early? Don't you guys sleep at all?
Sleep? What's that? Just put a wire up your arse and charge while you code during the night. Doesn't all do that, or is it just me??

Offline Manifest

  • Race & effect creator
  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 1063
  • Country: dk
  • Content creator for the new WCS version by Kami.
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #87 on: January 28, 2018, 09:31:56 PM »
Nice, then I can remove the entry "How to update WCS mod safely?" from the FAQ (since it will be safe to do so to begin with) :))

Yes, that you will be able to upon this change of structure being published there should no longer be any risks in updating your modification. :-)
"BRAVORA: Bruh it is fucking operation crystal night when you are approving races."


Offline Romero

  • Level 0 Beginner
  • Posts: 16
  • Country: ru
  • Hi there! You're look nice :3
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #88 on: January 28, 2018, 10:05:55 PM »
Make sure that the filepermissions on the levelbank.sqlite file are set to writeable (try putting it to 755)

Wow, thanks. I seriously forgot about the permissions :D

Offline Manifest

  • Race & effect creator
  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 1063
  • Country: dk
  • Content creator for the new WCS version by Kami.
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #89 on: January 28, 2018, 10:14:52 PM »
Kami suggesting something server related and...
BAM Muerte comes flying through the window like an angry brick thrown by the mafia, solving every single server related problem almost as if he had been in the room when it happened!

Brick Muerte to the rescue! :D
"BRAVORA: Bruh it is fucking operation crystal night when you are approving races."