Create your own Interactive Fiction

ADRIFT - Interactive Fiction  
Home   |   News ADRIFT News RSS   |   Screenshots   |   Download   |   Games ADRIFT Reviews RSS   |   Forum   |   Help   |   Links
Welcome Guest Register | Login
Popular Games
Skybreak! v. 1.1
Top Hat
Alien Diver v13
Jacaranda Jim
The PK Girl
Magnetic Moon
Museum Heist
Tribute: Return to the City of Secrets
The Axe of Kolt
the virtual human
 
Latest Forum Posts
Just a fairy tale
Playtesters needed for new ADRIFT game
Sticking things on things
Handling greeting NPCs when player enters/exits... (solved)
Version control of modules
Did you play Sierra on line games?
IFComp 2020
Climb Tree
Happy Birthday Rovarsson
There WERE 1600 indie games for $5
 
Latest Reviews
Alien Diver v13
Museum Heist
The Spectre of Castle Coris
The Axe of Kolt
Die Feuerfaust
Penrhyn - Burning Skies #GameJam420
Dreamspun #GameJam420
Tingalan
Skybreak! v. 1.1
The Lost Labyrinth of Lazaitch

Make a donation

Get it from CNET Download.com!
Cursor  Brackets don't nest inside user function parameters

Issue Type: Status: Priority: Date Submitted: Votes:
Bug Completed Medium Sat 23rd Nov 2013 3 votes Vote Up Vote Down
 
Found in version: Last Updated: Completed in version: Date Completed: Track Changes:
5.0.31.4 Sat 2nd Aug 2014 5.0.32 Thu 31st Jul 2014 Log In
 
saabieSat 23rd Nov 2013 13:32
If I call a general function and I calculate one of its parameters using a function that has a comma inside of parentheses, ie:
%NumberAsText[ %objects%.Children(Objects,On).s_OnMeans(under).Count ]%

ADRIFT will recognise that the comma is nested inside a second set of brackets and is NOT the end of the parameter.
It evaluates %objects%.Children(Objects,On).s_OnMeans(under).Count as an item function before looking for the "," or "]" that ends the parameter.

BUT if I do exactly the same thing with a USER function, then what actually happens is that ADRIFT simply scans from the "[" until it finds a "," and assumes that is the end of the parameter.
So instead of evaluating the item function it just sends the string "%objects%.Children(Objects" to the user function.
 
ElliotMSun 24th Nov 2013 15:27
If you put a space after the , when making the User function, does it then work? I've been struggling with this bug too and felt that I had someone gotten around this once, though I still have issues figuring out why some of them fail.
 
CampbellThu 31st Jul 2014 22:41
Fixed.
 
ElliotMSat 2nd Aug 2014 08:00
Thanks!
© 2013 Campbell Wild. All rights reserved. | Contact the Webmaster