Welcome to Soldier of Fortune Community Forums
20 Aug 2018, 05:41


View unanswered postsView active topics



Reply to topic  [ 21 posts ]  Go to page Previous  1, 2
[Release].os script decompiler v2.0 [LastUpdate:01/05] 
Author Message
Canada

User avatar

Joined:
Wed Nov 23rd, 2011
Location: Kanada
Posts: 598
Reply with quote
Last post of the previous page :
Found two more error and one of them is not well covered in the scripting documentation.doc

1.
[ holding for <float> ]
[ holding for <variable / float> ]
I have no idea why this hasn't been explained correctly. Though, the variable must be a float number (as far I know). Maybe <float> meant to be a variable already but reading the documentation is confusing.


2.
First, I'll print what's wrong with this statement.
<float> random from [min] to [max]
<variable / float> random from [min] to [max]
Maybe <float> meant to be a variable already but reading the documentation is confusing.

Second. When I use a decimal value for "[min] to [max]", the decompiler will reverse a weird intergral value which make no sense.

Example:
Spoiler:


26 Apr 2018, 18:08
Profile
Great Britain

User avatar

Topic author
Joined:
Fri Dec 02nd, 2011
Posts: 121
Reply with quote
Thanks for the update, point 1 has been taken into consideration now.  Many parts now can use variables before it did not support that.  There might be still a few places its missed out. Let me know.

Acadie wrote:
<float> random from [min] to [max]


On the random one, I dont see much problem here except for that i am not allowing the min and max to be variables, which I should be.  But mind you they must be integers, integers = whole numbers without decimal.  Its a mistake of mine to print them as floats, i will change that.  Thats why you are getting strange behavior when you are using floats (not whole numbers). I mean, if the decompiler gives weird output, then sof will also have weird behavior too.  So best just keep to good practises in that case.

New version will be posted very shortly.


01 May 2018, 01:15
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 21 posts ]  Go to page Previous  1, 2
Topic Views: 793


Who is online

Users browsing this forum: No registered users and 1 guest


Top
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Group
www.sof1.org