Author Topic: Devlog update (2015-01-21) minor fixes and ScriptCore  (Read 6194 times)

0 Members and 1 Guest are viewing this topic.

Offline ExHunter

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 154
  • Speedy go!
Devlog update (2015-01-21) minor fixes and ScriptCore
« on: January 21, 2015, 01:25:09 pm »
Hey there,

sorry for the non-regular devlogs. But hey, first devlog in 2015 :)

So.. this happened the past 3 weeks:

non-ScriptCore stuff:
Code: [Select]
- Modified updated default weapon graphics mod to Soldat Evolved v2.4.1 by L[one]R
- Modified refactored quite a bit of code
- Fixed Grenade packs and medkits spawns in wrong places #404/#595
- Fixed Star and Flag icon in the scoreboard are scaled down #601

ScriptCore stuff:
Code: [Select]
- Added SC3 function MD5(A: string): string;
- Added SC3 type TBannedHW = record HW: string; Time: Integer; Reason: string; end;
- Added SC3 type TBannedIP = record IP: string; Time: Integer; Reason: string; end;
- Added SC3 class TBanLists (accessible over global variable "Game.BanLists")
- Added SC3 procedure TBanLists.AddHWBan(HW, Reason: string; Duration: Integer);
- Added SC3 procedure TBanLists.AddIPBan(IP: string; Reason: string; Duration: Integer);
- Added SC3 function TBanLists.DelHWBan(HW: string): Boolean;
- Added SC3 function TBanLists.DelIPBan(IP: string): Boolean;
- Added SC3 function TBanLists.IsBannedHW(HW: string): Boolean;
- Added SC3 function TBanLists.IsBannedIP(IP: string): Boolean;
- Added SC3 function TBanLists.GetHWBanId(HW: string): Integer;
- Added SC3 function TBanLists.GetIPBanId(IP: string): Integer;
- Added SC3 property TBanLists.HW (read only - array of TBannedHW)
- Added SC3 property TBanLists.IP (read only - array of TBannedIP)
- Added SC3 property TBanLists.BannedHWCount: (read only - Integer)
- Added SC3 property TBanLists.BannedIPCount (read only - Integer)
- Added SC3 Game.AdminPassword property (string - read write)
- Added SC3 constant OBJECT_ALPHA_FLAG      = 1;
- Added SC3 constant OBJECT_BRAVO_FLAG      = 2;
- Added SC3 constant OBJECT_POINTMATCH_FLAG = 3;
- Added SC3 constant OBJECT_USSOCOM         = 4;
- Added SC3 constant OBJECT_DESERT_EAGLE    = 5;
- Added SC3 constant OBJECT_HK_MP5          = 6;
- Added SC3 constant OBJECT_AK74            = 7;
- Added SC3 constant OBJECT_STEYR_AUG       = 8;
- Added SC3 constant OBJECT_SPAS12          = 9;
- Added SC3 constant OBJECT_RUGER77         = 10;
- Added SC3 constant OBJECT_M79             = 11;
- Added SC3 constant OBJECT_BARRET_M82A1    = 12;
- Added SC3 constant OBJECT_MINIMI          = 13;
- Added SC3 constant OBJECT_MINIGUN         = 14;
- Added SC3 constant OBJECT_RAMBO_BOW       = 15;
- Added SC3 constant OBJECT_MEDICAL_KIT     = 16;
- Added SC3 constant OBJECT_GRENADE_KIT     = 17;
- Added SC3 constant OBJECT_FLAMER_KIT      = 18;
- Added SC3 constant OBJECT_PREDATOR_KIT    = 19;
- Added SC3 constant OBJECT_VEST_KIT        = 20;
- Added SC3 constant OBJECT_BERSERK_KIT     = 21;
- Added SC3 constant OBJECT_CLUSTER_KIT     = 22;
- Added SC3 constant OBJECT_PARACHUTE       = 23;
- Added SC3 constant OBJECT_COMBAT_KNIFE    = 24;
- Added SC3 constant OBJECT_CHAINSAW        = 25;
- Added SC3 constant OBJECT_LAW             = 26;
- Added SC3 constant OBJECT_STATIONARY_GUN  = 27;
- Added SC3 constant WTYPE_EAGLE          = 1;
- Added SC3 constant WTYPE_MP5            = 2;
- Added SC3 constant WTYPE_AK74           = 3;
- Added SC3 constant WTYPE_STEYRAUG       = 4;
- Added SC3 constant WTYPE_SPAS12         = 5;
- Added SC3 constant WTYPE_RUGER77        = 6;
- Added SC3 constant WTYPE_M79            = 7;
- Added SC3 constant WTYPE_BARRETT        = 8;
- Added SC3 constant WTYPE_M249           = 9;
- Added SC3 constant WTYPE_MINIGUN        = 10;
- Added SC3 constant WTYPE_USSOCOM        = 0;
- Added SC3 constant WTYPE_KNIFE          = 11;
- Added SC3 constant WTYPE_CHAINSAW       = 12;
- Added SC3 constant WTYPE_LAW            = 13;
- Added SC3 constant WTYPE_FLAMER         = 14;
- Added SC3 constant WTYPE_BOW            = 15;
- Added SC3 constant WTYPE_BOW2           = 16;
- Added SC3 constant WTYPE_M2             = 30;
- Added SC3 constant WTYPE_NOWEAPON       = 255;
- Added SC3 constant WTYPE_FRAGGRENADE    = 50;
- Added SC3 constant WTYPE_CLUSTERGRENADE = 51;
- Added SC3 constant WTYPE_CLUSTER        = 52;
- Added SC3 constant WTYPE_THROWNKNIFE    = 53;
  Following * only works on bots (enables bot movement scripting)
- Modified SC3 property TActivePlayer.KeyUp access mode to read write*
- Modified SC3 property TActivePlayer.KeyLeft access mode to read write*
- Modified SC3 property TActivePlayer.KeyRight access mode to read write*
- Modified SC3 property TActivePlayer.KeyShoot access mode to read write*
- Modified SC3 property TActivePlayer.KeyJetpack access mode to read write*
- Modified SC3 property TActivePlayer.KeyGrenade access mode to read write*
- Modified SC3 property TActivePlayer.KeyChangeWeap access mode to read write*
- Modified SC3 property TActivePlayer.KeyThrow access mode to read write*
- Modified SC3 property TActivePlayer.KeyReload access mode to read write*
- Modified SC3 property TActivePlayer.KeyCrouch access mode to read write*
- Modified SC3 property TActivePlayer.KeyProne access mode to read write*
- Fixed ForceWeapon falsifies GetPlayerStat(Ammo) #310
- Fixed SetWeaponActive bugs weapons of a player on spawn #603
- Fixed SC3 Game.Password shows admin password instead of game password #604
- Fixed SC3 Game.Password property was read only

Cya next week :)

Offline MrHamsTR

  • Soldier
  • **
  • Posts: 209
  • One day, everything will end..
Re: Devlog update (2015-01-21) minor fixes and ScriptCore
« Reply #1 on: January 21, 2015, 04:13:26 pm »
This update contains mostly general commands?
Is there anybody can write script?
Good, go and play soldat ^^

Offline homerofgods

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2029
  • We can do better!
Re: Devlog update (2015-01-21) minor fixes and ScriptCore
« Reply #2 on: January 21, 2015, 05:12:06 pm »
What will code refactoring do? It's basicly rewriting the code to make it more simple right? And that could lead to a more responsive program?

Offline ExHunter

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 154
  • Speedy go!
Re: Devlog update (2015-01-21) minor fixes and ScriptCore
« Reply #3 on: January 21, 2015, 06:11:53 pm »
What will code refactoring do? It's basicly rewriting the code to make it more simple right? And that could lead to a more responsive program?

In the past, when we fixed / changed stuff, usually new bugs occured, because some code parts were left out by the fix or change. Refactoring helps to prevent this, be it replacing weapon id numbers with constants, or making repetetive code shared, so that it's only in one place.

It'll not be really noticable (atleast right now), but it will help with improving stuff later on.

This update contains mostly general commands?

What do you mean?
« Last Edit: January 21, 2015, 06:22:51 pm by ExHunter »

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2079
  • need a life. looking for donors.
Re: Devlog update (2015-01-21) minor fixes and ScriptCore
« Reply #4 on: January 21, 2015, 06:46:43 pm »
I guess I better get back to Soldat and adjust the star and flag icons. Thanks for fixing this by the way. :) I wonder how the fixed medkit/grenade kit bug will affect current maps..

Offline ExHunter

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 154
  • Speedy go!
Re: Devlog update (2015-01-21) minor fixes and ScriptCore
« Reply #5 on: January 21, 2015, 07:56:18 pm »
[...] I wonder how the fixed medkit/grenade kit bug will affect current maps..

Me too. But this should be an improvement, since now finally kits only spawn there where they meant to be. We will see :)

Offline DutchFlame

  • Camper
  • ***
  • Posts: 363
Re: Devlog update (2015-01-21) minor fixes and ScriptCore
« Reply #6 on: January 21, 2015, 10:26:21 pm »
Nice nice dudes, any updates on what you're working on to get the new version out? *desperate for 1.7

Offline kicikici

  • Soldier
  • **
  • Posts: 180
Re: Devlog update (2015-01-21) minor fixes and ScriptCore
« Reply #7 on: January 22, 2015, 02:35:58 am »
sc3 gmute stuff similar to ban stuff <beg for it>
Classic banana

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2079
  • need a life. looking for donors.
Re: Devlog update (2015-01-21) minor fixes and ScriptCore
« Reply #8 on: January 22, 2015, 02:33:16 pm »
If you need to test the fix #601, I've attached new flag and star graphics here:
http://forums.soldat.pl/index.php?topic=43785.msg523349#msg523349

Offline CheeSeMan.

  • Flagrunner
  • ****
  • Posts: 731
  • WOOT SLIPPERY PICKLES
Re: Devlog update (2015-01-21) minor fixes and ScriptCore
« Reply #9 on: January 23, 2015, 12:47:37 pm »
cool cool keep it up =)

Banana Banging since summer 2008!     
cB. Cheeky Bananas                
#CheekyB.Soldat

Offline Fryer

  • Camper
  • ***
  • Posts: 261
  • Game dev
Re: Devlog update (2015-01-21) minor fixes and ScriptCore
« Reply #10 on: January 25, 2015, 03:44:31 am »
GJ with the bot movement scripting stuff, that'll open up some nice possibilities for scripted mission type game modes or just better AI in general for whoever feels like that's a thing they need. Any chance of also getting control over their aiming and shooting?
...PC vs Mac is like AK47 vs M4A1...
<DutchFlame`> i once heard running runescape in the background gave you a speedboost
<Mr> yes, it allocates more electrons, so there are more electrons available for Soldat -> they are streched less and it is more fluent

Soldat PolyWorks 1.5.0.13 - AimMode - Aim practise gamemode script - Fryer's SoldatStream Mod

Offline Mistercharles

  • Veteran
  • *****
  • Posts: 1371
  • +
Re: Devlog update (2015-01-21) minor fixes and ScriptCore
« Reply #11 on: January 25, 2015, 04:14:48 am »
Could someone give me a quick rundown on ScriptCore? It's been a while since I've been here, I searched around a bit but couldn't find anything. Is it like, for programming game modes? Because I would have a fucking field day with this.
shoutout to m'boyz eagles_arrows, echo_trail, wraithlike, sadistatheart, chakapoko maker, jrgp, aznblood, chakra, keron cyst, et al, miss you, let's '#gather some day

DarkCrusade

  • Guest
Re: Devlog update (2015-01-21) minor fixes and ScriptCore
« Reply #12 on: January 25, 2015, 05:54:52 am »
Server scripts enhance the gameplay, or offer utility for those that run them. There are scripts as simple as displaying your kill/death ratio, and as complex as entire game modes (Last Stand, Hexer, Miracle mod, etc.). Keep in mind though that writing your very own game mode is tedious work, and almost impossible if you have no experience in programming, and/or planning big projects. :)

Offline Mistercharles

  • Veteran
  • *****
  • Posts: 1371
  • +
Re: Devlog update (2015-01-21) minor fixes and ScriptCore
« Reply #13 on: January 26, 2015, 09:31:35 pm »
Programmer for thirteen years, college degree in engineering and mathematics, thank you very much :)

This is fabulous, though. Does the dedicated server install have a bit of documentation, or is there a library wiki or something?
shoutout to m'boyz eagles_arrows, echo_trail, wraithlike, sadistatheart, chakapoko maker, jrgp, aznblood, chakra, keron cyst, et al, miss you, let's '#gather some day

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Devlog update (2015-01-21) minor fixes and ScriptCore
« Reply #14 on: January 27, 2015, 12:30:31 am »
This is fabulous, though. Does the dedicated server install have a bit of documentation, or is there a library wiki or something?

The Soldat wiki has lots of docs on scriptcore. Look at those sections: http://wiki.soldat.pl/index.php/Main_Page
There are other worlds than these

Offline nosejj

  • Camper
  • ***
  • Posts: 432
    • Soldat Discord!
Re: Devlog update (2015-01-21) minor fixes and ScriptCore
« Reply #15 on: January 27, 2015, 06:06:40 am »
Although I have no clue what most of these updates mean; Good job devs.
I would love seeing a new map in the next version! It's been a while... :)

Offline kicikici

  • Soldier
  • **
  • Posts: 180
Re: Devlog update (2015-01-21) minor fixes and ScriptCore
« Reply #16 on: February 10, 2015, 04:33:16 am »
Quote
Classic banana