Author Topic: Scripts on 1.6.4 version  (Read 5177 times)

0 Members and 1 Guest are viewing this topic.

Offline Bonecrusher

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1397
  • High above
    • Zabijaka.pl
Re: Scripts on 1.6.4 version
« Reply #20 on: July 25, 2013, 07:15:58 am »

Im chill like that

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: Scripts on 1.6.4 version
« Reply #21 on: July 25, 2013, 07:26:09 am »
I wish we could choose between old and 'new' scriptcore
I wish people were writing their scripts with common sense. Then they'd notice that there actually is a choice between "new" and "old" scriptcore.

Most of those errors are because scripts were poorly written. What new compiler does is simply being more restrictive. I'm not saying that this is allright because it's clearly not, i'm just saying that it's not only me to blame. If you're looking for the 2nd guilty person, look into the mirror.

Also absolutely nobody dared to test scriptcore in any of 4 released RC versions. Maybe if you did, we could together do something to prevent it earlier. But you didn't. Now live with it.
« Last Edit: July 25, 2013, 07:50:00 am 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 Vos

  • Soldier
  • **
  • Posts: 231
    • http://kosoldat.forumer.com/index.php
Re: Scripts on 1.6.4 version
« Reply #22 on: July 25, 2013, 09:43:05 am »
NVM

edit: was everyone able to test the new scriptcore? or just the beta team
« Last Edit: July 25, 2013, 09:46:15 am by Vos »
For signatures, you are allowed only one image in your signature which may not be wider and taller than 300 and 125 pixels, and may not be over 20kB in file size. No BMPs are allowed.

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: Scripts on 1.6.4 version
« Reply #23 on: July 25, 2013, 09:58:28 am »
Were RC releases public? I think they were. At least three of them.
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 Vos

  • Soldier
  • **
  • Posts: 231
    • http://kosoldat.forumer.com/index.php
Re: Scripts on 1.6.4 version
« Reply #24 on: July 25, 2013, 10:13:54 am »
Didn't know they were working with the new scriptcore already tbh, didnt read that anywhere either.. but might have missed that
For signatures, you are allowed only one image in your signature which may not be wider and taller than 300 and 125 pixels, and may not be over 20kB in file size. No BMPs are allowed.

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: Scripts on 1.6.4 version
« Reply #25 on: July 25, 2013, 10:40:31 am »
It's not about new scriptcore, as i mentioned above it's about changing compiler to FPC and PascalScript to newest. New scriptcore is seperated.
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 Hubiq

  • Soldier
  • **
  • Posts: 119
Re: Scripts on 1.6.4 version
« Reply #26 on: July 25, 2013, 02:24:53 pm »
Which scripts do not work? Only the more complicated? e.g. killing sprees, track, awards, ratio, stats etc.?

Offline skrX

  • Soldier
  • **
  • Posts: 112
  • x ye.
Re: Scripts on 1.6.4 version
« Reply #27 on: July 26, 2013, 05:25:06 am »
Most scripts that have 'ratio' or split something.

Offline Vos

  • Soldier
  • **
  • Posts: 231
    • http://kosoldat.forumer.com/index.php
Re: Scripts on 1.6.4 version
« Reply #28 on: July 26, 2013, 05:44:38 am »
basically every script that has percentages and numbers rolling
For signatures, you are allowed only one image in your signature which may not be wider and taller than 300 and 125 pixels, and may not be over 20kB in file size. No BMPs are allowed.

Offline JotEmI

  • Soldier
  • **
  • Posts: 188
Re: Scripts on 1.6.4 version
« Reply #29 on: July 26, 2013, 10:05:53 am »
I don't know if anyone else noticed but apparently some object styles in SpawnObjet() and GetObjectStat() have changed.
E.g. knife used to have ObjTyp=12 in SpawnObject() and now it's 13, 12 is chainsaw now.

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: Scripts on 1.6.4 version
« Reply #30 on: July 26, 2013, 11:16:12 am »
It wasn't desired. Report it on mantis maybe so i don't forget about it.
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 skrX

  • Soldier
  • **
  • Posts: 112
  • x ye.
Re: Scripts on 1.6.4 version
« Reply #31 on: July 26, 2013, 01:33:06 pm »
2.7.3

« Last Edit: July 27, 2013, 05:15:43 am by skrX »

Offline JotEmI

  • Soldier
  • **
  • Posts: 188
Re: Scripts on 1.6.4 version
« Reply #32 on: July 26, 2013, 07:33:29 pm »
It wasn't desired. Report it on mantis maybe so i don't forget about it.

Here you go http://bugs.soldat.pl/view.php?id=346

Offline Mittsu

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 617
Re: Scripts on 1.6.4 version
« Reply #33 on: July 27, 2013, 02:53:16 am »
there's this little problem with displaying statistics with too many zeros

Realistic-Soldat.net
<+elerok> soldat is dead
<+AThousandD> shit happens

Offline JotEmI

  • Soldier
  • **
  • Posts: 188
Re: Scripts on 1.6.4 version
« Reply #34 on: July 27, 2013, 03:11:15 am »
there's this little problem with displaying statistics with too many zeros


Use FormatFloat('format',float_value) instead of FloatToStr() to get rid of them.
http://www.delphibasics.co.uk/RTL.asp?Name=FormatFloat

Offline Mittsu

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 617
Re: Scripts on 1.6.4 version
« Reply #35 on: July 27, 2013, 03:35:06 am »
thanks
Realistic-Soldat.net
<+elerok> soldat is dead
<+AThousandD> shit happens

Offline Bydlak

  • Major(1)
  • Posts: 34
Re: Scripts on 1.6.4 version
« Reply #36 on: August 08, 2013, 04:51:55 pm »
Well I have no idea how to use the FormatFloat to get rit of the zeros in both scripts and I can't find anybody who has fixed them.
Have anybody fixed this or could show me a way how to do it? I would be grateful

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: Scripts on 1.6.4 version
« Reply #37 on: August 08, 2013, 05:16:21 pm »
Replace every "FloatToStr(" with "FormatFloat('', "
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 skrX

  • Soldier
  • **
  • Posts: 112
  • x ye.
Re: Scripts on 1.6.4 version
« Reply #38 on: August 09, 2013, 07:30:07 am »
For those who still have problems with this:

Example:
Code: [Select]
FloattoStr(RoundTo(100 * Total / NumPlayers, 2))

FormatFloat('value',code)
FormatFloat('00',RoundTo(100 * Total / NumPlayers, 2))

Offline Mighty

  • Camper
  • ***
  • Posts: 276
Re: Scripts on 1.6.4 version
« Reply #39 on: August 09, 2013, 08:05:02 am »
For those who still have problems with this:

Example:
Code: [Select]
FloattoStr(RoundTo(100 * Total / NumPlayers, 2))

FormatFloat('value',code)
FormatFloat('00',RoundTo(100 * Total / NumPlayers, 2))

Code: [Select]
FormatFloat('##0.##',100.00 * Total / NumPlayers);Works fine without RoundTo. Unless that 0.009% makes a difference
xFire: macmil        e-mail: macekmil@gmail.com
My scripts: Accuracy Script       Flashbang       Punishments GUID
            CatchMe Gamemod       AntiFake
            CW System             AntiFakeGUID