Author Topic: Devlog update (2012-07-29) Scriptcore changes (and more to come)  (Read 3065 times)

0 Members and 1 Guest are viewing this topic.

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Hi!

After 2 weeks of inactivity there's finally some movement in devteam. And that'd be me, commiting my scriptcore refactoring.
Internally almost everything changed except the fact that it still uses RemObject's PascalScript as engine. As for the API here's the list of what I've changed:
  • Modifed scripts are not shutting down the server when compilation fails (they'll simply get disabled instead)
  • Modified script will display now proper info whenever dll file is not found or there's any other error with script other than syntax error
  • Modified hints are now shown also when compilation succeeds
  • Modified  script will now display line and column number on error, if such info is available (I've noticed that they were already compiling and running in debug mode, why not taking advantage of it then)
  • ------
  • Added OnGameEnd() event
  • Modified AppOnIdleTimer is now available also if safemode is enabled
  • Modified OnRequestGame is now OnRequestGame(IP: String; Port: Word; State: byte; Forwarded: Boolean): Integer;
  • Modified OnPlayerKill is now OnPlayerKill(Victim, Killer, Weapon: Byte); (Weapon String->Byte)
  • Modified OnPlayerDamage is now OnPlayerDamage(Victim, Shooter: Byte; Damage: Integer; Weapon: Byte): Integer; (Added Weapon)
  • Removed ReqFwd and ReqPort global variables
  • Removed socket functions
Right after my commit, Shoozza've started to refactor my code (normalizing variable/function names and such), poor guy :P. Beyond that he added also couple of his changes, and that'd be:
  • Modified PlaySound script function can play files from .\Sfx folder instead of .\Downloads\Sfx folder
  • Fixed Soldat "crash" if playback device is missing and registered
  • Fixed access violation if playback device is missing and not registered
It also turned out that my commit managed to somehow break client's code and it was unable to compile itself for some time. Hopefuly Shoozza resolved it as well.

I hope nobody was using socket functions, they were broken anyway afaik. If you did so though, now you have dlls, feel free to use them instead.
If you have some ideas for features that could be added to scriptcore, this is the perfect time to report them, however please do so on suggestion board instead of posting them as reply to this topic.
Speaking about features, I've found old enesce's get/usepackage code. It was incomplete, now it's even more incomplete as I've removed it completely along with sockets, the implementation was bad anyway. The only thing left from it is PlaySound() function which will be included in next release.
It doesn't mean that I'm not gonna (re)add package support in the future, if you have an idea on how that could look like, please post it on suggestion board.
« Last Edit: August 14, 2012, 04:31:37 pm by FalconPL »
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Offline Adam

  • Camper
  • ***
  • Posts: 322
  • When someone you argue with has a good point.
Re: Devlog update (2012-07-29) Scriptcore changes (and more to come)
« Reply #1 on: July 29, 2012, 05:02:46 pm »
bravo :P ::)

Arguing with your girlfriend and you don't get a response for a few minutes

Offline DutchFlame

  • Camper
  • ***
  • Posts: 363
Re: Devlog update (2012-07-29) Scriptcore changes (and more to come)
« Reply #2 on: July 29, 2012, 05:51:57 pm »
One question. When can we expect a release? Good job so far.

Offline Shoozza

  • Moderator
  • Veteran
  • *****
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Devlog update (2012-07-29) Scriptcore changes (and more to come)
« Reply #3 on: July 29, 2012, 08:04:29 pm »
One question. When can we expect a release? Good job so far.
I want to have it out in early october.
Rules
Tools: ARSSE - SARS - SRB - chatMod

Offline As de Espada

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1493
  • Mapper
    • My maps
Re: Devlog update (2012-07-29) Scriptcore changes (and more to come)
« Reply #4 on: July 29, 2012, 09:20:29 pm »
Good job :)
All my maps | my latest map: SoldatX Racing Mappack
me making a map on youtube: ctf_FastMade

Offline Bonecrusher

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1397
  • High above
    • Zabijaka.pl
Re: Devlog update (2012-07-29) Scriptcore changes (and more to come)
« Reply #5 on: July 30, 2012, 02:36:40 am »
Quote
Modifed scripts are not crashing the server when compilation fails (they'll simply get disabled instead)
Hah too bad we had to wait 10 years for that ;p gj anyway waiting for more sweet tweaks/bugfixes!

Im chill like that

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: Devlog update (2012-07-29) Scriptcore changes (and more to come)
« Reply #6 on: July 30, 2012, 03:05:38 am »
Hm, perhaps "crashing" was a bad word here. Shutdowns were triggered on purpose, I don't know why exactly.
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Devlog update (2012-07-29) Scriptcore changes (and more to come)
« Reply #7 on: July 31, 2012, 04:06:35 pm »
Hm, perhaps "crashing" was a bad word here. Shutdowns were triggered on purpose, I don't know why exactly.

Stupidity maybe ? Good job on changing that.