PDA

View Full Version : What happened the int to string function?


zero00
05-13-2012, 01:29 PM
In 3/1/2012 version of Alice, the int to string function has transformed into a thin purple box. It still works, but it's a bit weird... :confused:

DensetsuNoKaboom
05-13-2012, 03:30 PM
I believe Arty-FishL made a patch that fixes this.

arty-fishL
05-13-2012, 07:16 PM
I believe Arty-FishL made a patch that fixes this.Indeed I did. > CLICK ME FOR PATCH <
(http://alice.org/community/showthread.php?p=47916#post47916)

aikmin
05-19-2012, 01:09 AM
You do not need to install any patch for the "int as string" function. You are just missing the correct resources file. Attached is the correct resource file. Extract the content to your Alice-Required-resources-en folder.

MrMoke
05-26-2012, 04:33 PM
A similar problem seems to exist with the java style files. Is there a fix for them as well?

Might be good to update the download with these.

Looked over Arty's patch, and decided to try adding call entries to ...math.Int to the format map of the two Java Style.py files using Dreamweaver. They work fine now.

MrMoke
08-26-2012, 03:38 PM
Thanks

DensetsuNoKaboom
04-07-2013, 02:33 PM
...and in the newest version of 2.3 the problem is back again.

MrMoke
04-07-2013, 03:06 PM
The documentation for version 2.3.3 indicates that it has been renamed to just [int<>] in the World Functions.

DensetsuNoKaboom
04-07-2013, 07:36 PM
Huh, I could've sworn...

MrMoke
04-14-2013, 11:06 AM
The little attached proggie shows interesting aspects.:)

arty-fishL
04-14-2013, 11:29 AM
The little attached proggie shows interesting aspects.:)

The behaviour of that function must have been changed in the recent update, because it crashes after "Add Int of value to Dec of Value" for me on Alice 2.2 and 2.3, but not 2.3.3, where it displays those interesting aspects.

MrMoke
04-14-2013, 05:37 PM
Yeah- That was obviously the first thing I decided to try, most likely just to see if it would actually work. The result gave me the incentive to play around a little more. Once I observed the fact that the numbers are being converted in background, I saw new possibilities for simplifying coding. Also, maybe a little closer to Java String Concatenation?

The code that breaks older versions, probably wouldn't have worked with the older versions anyway.

All machines in my classes are running 2.3.3:), now 2.3.4b