Browse Search Popular Register Upload Rules User list Login:
Search:
Code Extractor II Tool

Image:
screenshot of the scene

Author: s_noonan

Group: Technical

Filesize: 55.95 kB

Date added: 2021-03-06

Rating: 5

Downloads: 409

Views: 203

Comments: 5

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

This code extractor is 7X faster and has 20% less custom code than the previous one. It uses a "scene.phn" file in the Algodoo/scenes/ directory as input.

Rev A: "Algodoo/scenes/" was "Algodoo/"
Last edited at 2025/04/18 11:41:37 by s_noonan
Please log in to rate this scene
edit
Similar scenes
Title: Shade's Toolbox
Rating: 5
Filesize: 28.96 kB
Downloads: 283
Comments: 1
Ratings: 1
Date added: 2018/09/21 22:49:07
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Morse Code Machine
Rating: 5.625
Filesize: 231.1 kB
Downloads: 2526
Comments: 4
Ratings: 2
Date added: 2013/07/23 00:14:11
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: Code Reference V1.1
Rating: 5
Filesize: 50.55 kB
Downloads: 357
Comments: 3
Ratings: 1
Date added: 2022/10/07 21:03:03
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Escape game (WIP)
Rating: 5.625
Filesize: 1.28 MB
Downloads: 2761
Comments: 3
Ratings: 2
Date added: 2024/07/31 12:00:23
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: Human Code
Rating: 5
Filesize: 38.83 kB
Downloads: 1165
Comments: 0
Ratings: 1
Date added: 2020/03/28 22:02:57
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Automatic Aglobox Opener
Rating: 5
Filesize: 27.49 kB
Downloads: 321
Comments: 0
Ratings: 1
Date added: 2020/09/11 19:47:38
Made with: Algodoo v2.1.0
Rating: rated 5
download
I might be doing something wrong again, but it doesn't seem to work. Here is what I did:

1. I created a simple scene of just a box with a couple lines of custom code in it.
2.I then saved the scene.
3. I dragged the code extractor phunlet (that I previously saved to my phunlet directory) into my simple scene.
4. I clicked the Run button (It wasn't clear if the scene under test must be running or not, and so I tried it both ways, running and paused).
5. The text panel popped up as expected, but nothing happened after that. I waited close to 3 minutes and gave up at that point.

Based on this list, did I do something wrong? :s
S: "I saved the scene."
R: Did you save it to the same directory that has the Algodoo config.cfg file and did you name it "scene.phn"?

When the text panel pops up it's done. Maybe it didn't find scene.phn.
S: "Did you save it to the same directory that has the Algodoo config.cfg file and did you name it "scene.phn"?"

R: No and No. My directory structure for saving Algodoo scenes is Algodoo/Scenes. The config file is in the Algodoo root directory. It has always been set up that way.

So, you are saying any scene that I want to extract code from needs to be renamed "scene.phn"? If so, I don't like that at all. How difficult would it be to have the user enter the name of the scene? That way it won't need to be altered and saved as something else. It would also work for people with a different directory structure like mine if you can also allow them to enter the directory where the scenes are stored.
Regarding the file location, it is now "Algodoo/scenes/" it was "Algodoo/". I initially thought that Algodoo could only read and write from the "Algodoo/" folder.

Regarding the file name, it is still "scene.phn" for the following reasons:
1. If I used a user supplied filename, then I would need to create my own filename input dialog and it would not be as good as Algodoo's filename input dialog.
2. Scenes are stored as "scene.phn" in the .phz file. I can easily open a .phz with 7-Zip and copy scene.phn to "Algodoo/scenes/".
3. If a user made a .phn scene with the same name as a .phz scene he might get the two mixed up and make changes to the wrong scene.
Okay, now it works as long as I follow your detailed instructions. I still don't like having to rename and save a file with the name Scene.phn, but if that's how it has to be, then so be it.

One thing that wasn't clear to me at first is whether or not the scene needs to be running during extraction. I now know that it does not, but you might want to put a note in the scene stating that.

Overall, good job on the scene (except for the renaming/saving requirement). :lol: