Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: elfprince13 on February 03, 2006, 08:05:00 am

Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 03, 2006, 08:05:00 am
Some of you may remember that for a while I have been working on making a Mac port of basic builder. Id sort of put it on the back burner for a while so I can finish some other projects and learn more Python (the backend of BasicBuilder is written in Python).

Now that Ive had a chance to hone my Python skills working on gCn Im resuming work on it, and that's the only project I will be working for the next week or so while Kerm works on the gCn calc-comp protocol.

It wont be open source (due to the agreement I made with Martin Warmer), but it will be more be easier to use, and a little more reliable, and I will actually be using one of the built-in features that never made it into the BasicBuilder 2.0 exe.

I will also be releasing a new version for windows as well, and possibly Linux if I can get access to a Linux box
Title: Basic Builder--wxPython Edition
Post by: dysfunction on February 03, 2006, 08:16:00 am
For the linux port, you could always just install cygwin- http://www.cygwin.com/

You would have to compile your final version on an actual Linux box (or just get a Linux live cd), but you could do the whole dev process in GCC within cygwin.

Anyway, I've always been a bit intrigued by BasicBuilder's potential, but none of the versions I've seen would be really compatible for conversion of any of my projects. Will your version by any chance be compatible with xLib, including its 255-pic functionality?
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 03, 2006, 08:26:00 am
The problem with using Cygwin is Martin Warmer asked me not to release any source (which I have to respect since he put a lot of work into it), and Ive lost contact with him, so I cant ask if its okay to release frozen source.

BasicBuilder itself allows extra pictures, and allows programs to access any basic libs already installed, plus it gives you access to ridiculous amounts of memory (for a calculator that is)
Title: Basic Builder--wxPython Edition
Post by: kalan_vod on February 03, 2006, 09:36:00 am
Sounds great, hope to see some sort of demo or realease soon.
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 03, 2006, 09:54:00 am
I should be able to release by the end of February, I got a ton of work done on the interface last night. I have Martin Warmer's existing python backend. I need to finish the interface and then start integrating the two.


EDIT:
====
Kllrnohj just suggested I release a byte compiled version as well for linux users although that wouuld require them to have wxPython installed, *nixer's tend to be better about that sort of thing anyway.
Title: Basic Builder--wxPython Edition
Post by: dysfunction on February 03, 2006, 11:09:00 am
Yes, I knew Basicbuilder allowed 26 pics (A-z) but I don't think these pics are accessible by xLib... are they? The way xLib has gained popularity with BASIC programmers over the last few months means its pretty necessary for something like this to be able to integrate completely with it.
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 03, 2006, 11:20:00 am
Im not sure. I do know that BBuilder apps can access everything that a normal basic program can.

also here's a screeny of what I've gotten done on the front end so far (without using wxGlade or PythonCard)


http://img331.imageshack.us/my.php?image=bbuilderscreeny9cp.jpg

as mentioned above Im using Martin's existing backend.
Title: Basic Builder--wxPython Edition
Post by: BCTurk on February 03, 2006, 11:43:00 am
Looks cool, one question, will the terms of use differ with yours over his?  Speficially, the term that says you must release the source prog's with the app.

Other then that, sounds like this could be a great alternate to the original.
Title: Basic Builder--wxPython Edition
Post by: DJ Omnimaga on February 03, 2006, 01:59:00 pm
that sound pretty cool, I remember someone IMed me because he had problem running the original BB program (some buttons were not see for some reasons) maybe if I see him again I could point him to this. I should try to port my old RPGs to Basic Builder, at least those which wont require too much changes
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 03, 2006, 02:04:00 pm
QuoteBegin-BCTurk+3 February 2006, 17:43-->
QUOTE (BCTurk @ 3 February 2006, 17:43)
Looks cool, one question, will the terms of use differ with yours over his?  Speficially, the term that says you must release the source prog's with the app.

Other then that, sounds like this could be a great alternate to the original.  

 I will only ask that you mention BasicBuilder somewhere in the credits. the new version will come with a more user friendly version of the decompile utility than the old one so you wont need to include source programs since anyone can't view them if they want. If Martin comes back and has a problem with the way its being used then you'll need to respect that. However since Martin seems to have disappeared from the community, I feel justified in slightly modifying the License.
Title: Basic Builder--wxPython Edition
Post by: DJ Omnimaga on February 03, 2006, 02:16:00 pm
in the original BB martin said you need to include the original programs/pics/data with your BB app in zip files as well
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 03, 2006, 02:27:00 pm
right, but with the improved access to the BBuilder decompiler, I dont think he would mind if you didn't as long as you still give credit to BBuilder somewhere.
Title: Basic Builder--wxPython Edition
Post by: BCTurk on February 03, 2006, 07:08:00 pm
Oh, for sure I would give credit, just the soruce is something that I didn't want to include, because I can see now having people ask me, even with a readme, "Do I send all the files or just the wierd looking one with the calc picture as an Icon???/??//??"
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 06, 2006, 03:53:00 pm
http://rancidmoose.unitedti.org/members/BBuilderPyDemo.zip the current demo...two more pages plus the buttons. then the real work begins. I just switched over to BoaConstructor which is awesome
Title: Basic Builder--wxPython Edition
Post by: DJ Omnimaga on February 07, 2006, 03:04:00 am
hmm how do I execute .py and .pyc files on my computer? It says to select an application to do so
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 07, 2006, 03:48:00 am
you need to have python installed. sorry should have posted instructions. install python and wxwidgets then double click on App1.py
Title: Basic Builder--wxPython Edition
Post by: DJ Omnimaga on February 07, 2006, 04:13:00 am
where can I download these?
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 07, 2006, 05:20:00 am
http://www.python.org and http://www.wxpython.org



the final version will be compiled to native executables, but for now, before I add in the backend Im just distributing python files
Title: Basic Builder--wxPython Edition
Post by: DJ Omnimaga on February 07, 2006, 05:29:00 am
i c I'll download them asap

EDIT:  nice so far, are u gonna port it to mac as soon as this version is finished?
Title: Basic Builder--wxPython Edition
Post by: kalan_vod on February 07, 2006, 05:53:00 am
It looks really good, the design of them look great!
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 07, 2006, 06:37:00 am
python and wxpython will run on any platform already, so as soon as its working I'll make the mac and windows binaries,  and release the bytecode for everyone else.
Title: Basic Builder--wxPython Edition
Post by: rivereye on February 07, 2006, 12:19:00 pm
what is the diffrence between Python and wxpython
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 07, 2006, 12:51:00 pm
python is the programming language, wxPython is a python binding for wxWidgets which is a C/C++ library that allows native looking, cross platform gui-development
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 08, 2006, 06:48:00 am
sry for the double post,

anyway Ive almost got the second page done, but I didnt have much time last night. Ill post an update as soon as page 2 is done
Title: Basic Builder--wxPython Edition
Post by: DJ Omnimaga on February 08, 2006, 07:11:00 am
kk I hope to see it soon :)smile.gif
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 08, 2006, 11:40:00 am
demo updated, same link...questions? comments? death threats?
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 21, 2006, 02:57:00 pm
I just added in the decompiler. the demo has not been updated because now the backend is being used and Im too lazy too compile that at the moment.

EDIT:
===
the demo has now been updated. The GUI is done. The decompiler works....almost there. if you have any bbuilder hex files, please attempt to decompile them now.
Title: Basic Builder--wxPython Edition
Post by: DJ Omnimaga on February 22, 2006, 05:51:00 am
I should try it whenever I ahve time, maybe with an alerady existing BB file at ticalc
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 22, 2006, 03:52:00 pm
QuoteBegin-xlibman+Feb 22 2006, 11:51-->
QUOTE (xlibman @ Feb 22 2006, 11:51)
I should try it whenever I ahve time, maybe with an alerady existing BB file at ticalc  

 thanks. I really appreciate that, especially after your post on UTI....
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 27, 2006, 03:13:00 pm
I am completely done except for coding the 8 buttons that manipulate the program/menu list

Since Im so close Im not going to update the demo until its done. the last 8 buttons will be the hardest, but expect a release by the end of this week.
Title: Basic Builder--wxPython Edition
Post by: kalan_vod on February 27, 2006, 04:34:00 pm
Great, this will be good news for some people! I am glad you are going to finish it!
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 27, 2006, 05:44:00 pm
just finished. Official release is tomorrow after I build the binaries.

Im headed to bed
Title: Basic Builder--wxPython Edition
Post by: necro on February 27, 2006, 06:03:00 pm
(from google ads)
Python Sexual Performance
Python is a Unique Herbal Blend to Support Male Sexual Performance

...wow...google dropped the ball...er, I think I just punned all over my self...O_Oshocked2.gif (I'm done)


any ways: any chance you could add a way to generate archived programs that store a set of stats and vars (strings, lists, vars, and matrices in basic code form) in the next version?  That'd be sway as a bag of chips...plus all that.
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 27, 2006, 07:10:00 pm
Ive been considering something of the sort. Sadly I dont really know much Asm, and Im just redoing the interface to run on any platform atm.

So. Until I learn asm, Im really not gonna fool with the backend.
Title: Basic Builder--wxPython Edition
Post by: DJ Omnimaga on February 28, 2006, 05:14:00 am
sound cool. I cant wait until its released. Too bad i couldnt convert my most recent RPGs to it tho :(sad.gif
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 28, 2006, 06:08:00 am
why not?
Title: Basic Builder--wxPython Edition
Post by: DJ Omnimaga on February 28, 2006, 06:23:00 am
because Basic builder apps would need to detect if a program need to be loaded directly into archive instead of RAM or vice versa. Most of my RPG use both archive and RAM at the same time. Of course I could always include only programs going in RAM in the app and leave the archived programs as stand alone.

Try converting Reuben Quest 2 to BASIC builder, good luck %)rolleyes2.gif
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 28, 2006, 07:41:00 am
lol....I dont have that much time on my hands :Pblah.gif
Title: Basic Builder--wxPython Edition
Post by: kalan_vod on February 28, 2006, 07:50:00 am
Yeah, lol but it still sounds great!
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 28, 2006, 08:03:00 am
probably 3 hours till I release it.
Title: Basic Builder--wxPython Edition
Post by: Spellshaper on February 28, 2006, 08:05:00 am
O_Oshocked2.gif ukay... u are fast man...
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 28, 2006, 08:14:00 am
thanks.

EDIT:
====
At this point, its looking like I wont release until 9. I had some trouble building the Mac version, and Im gonna be gone for a few hours
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on February 28, 2006, 03:45:00 pm
its done.

download it http://rancidmoose.unitedti.org/members/projects/bbuilderpy

feel free to add it to the archives here/
Title: Basic Builder--wxPython Edition
Post by: DJ Omnimaga on March 01, 2006, 04:00:00 am
cool *xlibman
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on March 01, 2006, 06:45:00 am
As I said earlier, feel free to add it to the Omnimaga archive. there is also an old BeOS version hanging around on ticalc.org from the original Basicbuilder 1.0
Title: Basic Builder--wxPython Edition
Post by: DJ Omnimaga on March 01, 2006, 07:36:00 am
Yeah I or kala will prbly add it asap. but now I have a problem: when  I run it it says to check the log files for error info and here is the logs:

c1-->
CODE
ec1Traceback (most recent call last):
 
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on March 01, 2006, 09:58:00 am
oooh....do you have wxPython for Unicode or ANSI installed?\


EDIT:
===
nvm..that doesn't matter cause it standalone and all the dependencides are with it. thats wierd though. It ran at school on 4 different comps, and at home. You ran BasicBuilder.exe right?
Title: Basic Builder--wxPython Edition
Post by: DJ Omnimaga on March 01, 2006, 10:27:00 am
I have it installed because I tried your other demo earlier, I ran basicbuilder.exe
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on March 01, 2006, 10:36:00 am
QuoteBegin-xlibman+Mar 1 2006, 16:27-->
QUOTE (xlibman @ Mar 1 2006, 16:27)
I have it installed because I tried your other demo earlier, I ran basicbuilder.exe  

 well you shouldn't need it anyway, but I meant which one.


basicbuilder.exe is what you are supposed to run so that is good.

if you have ansi wxPython installed try switching to the unicode version. Ive tried comps with no python, and unicode wxPython .


it looks like its when its getting the path prefix that the problem happens. Im just not sure why.
Title: Basic Builder--wxPython Edition
Post by: kalan_vod on March 01, 2006, 10:59:00 am
Ok I tried it like 10 times and didn't get it to work.

user posted image
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on March 01, 2006, 01:33:00 pm
that is fixable by you, and quite easy. it was also a problem with the old one. make sure your output file is in the same folder as the ini. Try to keep all your input and output in the same directory.

Its Kevin's problem that has me stumped
Title: Basic Builder--wxPython Edition
Post by: kalan_vod on March 01, 2006, 01:42:00 pm
The thing is I did have it output into the same directory. Or maybe I didn't....Ill retry.
Edit: I retried and it didn't work still. The programs are in the same folder and the output is in the folder also.
Title: Basic Builder--wxPython Edition
Post by: elfprince13 on March 01, 2006, 02:36:00 pm
search your computer and find where it is creating input.obj. it is creating it. the question is where. try saving an ini file with your settings to the directory.