|
Post by Rod on Apr 29, 2023 13:09:03 GMT
If Windows changes something that requires a fix Carl will support v2 but unlikely that v1 would be supported. But so far v1 has run well for years. Even on W11
|
|
stumpy
Member in Training
Posts: 66
|
Post by stumpy on Apr 29, 2023 13:40:01 GMT
Ok, after a lot of trials and errors I think I have this figured out. I believe you have the old dll, sll, and renamed jbrun.exe in the folder with your new .bas file. Trying to make a JB 2 tkn with JB(old version) jbrun2.exe, or an old .dll/.sll. Try this..(it worked for me after downloading your breeders v4.20 file and testing) Copy all your files\folders, including your new bas file into a new folder. Don't copy the dll, sll, the exe, or the tkn. Now go get copies of those dll's, sll's, and the jbrun2.exe files from the Just Basic v2.0 install folder (usually by default - c:\Program Files (x86)\Just Basic v2.0) Paste those files in with all your other files. Rename jbrun.exe to the name of your new bas file, but with .exe extension. (eg: breeders v4.20.exe) Now, make your new tkn with the .bas file in the new folder. From then on, use the new folder when updating. Let us know if that fixed you up. I'm almost positive it is the old jbrun2.exe(renamed to breeder v2.0.exe), or one of the dll, sll files of old.
Yes that was indeed the answer!!
and things are back to normal using Just BASIC v2.0 on the 'new' laptop with Win11
but following Rod's comments: " ....You would probably need to distribute a whole new folder as version x to stop uses getting in the same position."
+ "....unlikely that v1 would be supported...",
and pending any further thoughts about the pros and cons of switching the package to Just BASIC v2.0,
for now I have published the latest small update using only Just BASIC v1.01.
Thanks very much again to everyone who has looked in to help
|
|
|
Post by xxgeek on Apr 29, 2023 15:32:40 GMT
Glad to help stumpy.
If you have quite a few apps to bring into the JB v2.0 fold, you may find BAS<2>EXE a very helpful tool. It will automate the process of copying all the dll, sll, renaming the jbrun2.exe etc You can find it in the "Shared Programs" section.
It is more than you need since it also creates a single exe file, but will make the tkn and put all support files together in a folder. All you have to do is select the .bas file, and it will do the rest.
|
|
stumpy
Member in Training
Posts: 66
|
Post by stumpy on Apr 29, 2023 17:29:30 GMT
That sounds like a neat tool
In fact the pigeon program is the only one I have made for ages and that was only thanks to JB and this forum. First about 45 years ago it was Sharp MZ80K basic, which was remarkable in that it could write lines for itself as a form of AI, and titles 'helicopter rescue' and sword fighting 'duelist', like barbarian but no royalties although I did sell three copies through a magazine, and 'swat' all done using characters to make the graphics, eventually Spectrum and Amiga basic for pigeon records.
I could never get to grips with machine code when that was more popular, or anything much beyond basic. Good thing that JB is so easy, although I realise how powerful it can be and how it can do so much more, while luckily it does even the crudest code amazingly fast
It was just that although there are other pigeon progs, there was nothing quite like Pigeon Breeders Records so I had to make my own. At least to me it has been very useful.
|
|
stumpy
Member in Training
Posts: 66
|
Post by stumpy on Apr 30, 2023 7:07:23 GMT
Glad to help stumpy. If you have quite a few apps to bring into the JB v2.0 fold, you may find BAS<2>EXE a very helpful tool. It will automate the process of copying all the dll, sll, renaming the jbrun2.exe etc You can find it in the "Shared Programs" section. It is more than you need since it also creates a single exe file, but will make the tkn and put all support files together in a folder. All you have to do is select the .bas file, and it will do the rest. PS...and to me it looks pretty advanced but it must be useful to save collecting all the bits needed for a number of apps,
although, apologies, I can't recognise many of the commands to follow the way it works.
Would have liked to provide more feeedback, but to publish my single effort the dlls etc. just needed to be collected once.
MZ80K had the facility to renumber or reorder its own code and these days it would be handy to be able to put a list in alphabetical order, which is something I could probably manage, and from time to time have meant to try. There are several web based offerings but haven't spotted a freeware dowload. Had a look here too.
|
|
|
Post by xxgeek on May 1, 2023 16:27:00 GMT
It looks a lot more daunting than it really is.
In the first block of code, comment these lines to avoid copying files to support commandline.(you won't need them, use the GUI)
if not(fileExists(DefaultDir$, "b2e.exe")) then command = 1 : firstRun = 1 : project = 1 : fname$ = DefaultDir$;"\b2e.bas" : goto [checkjbpath] end if
Open JB and paste the code, then save it to a folder of it's own, and run it.
Hit the button and Select your .bas file. Be sure to check the checkbox for "Keep Project" (that is the folder with all the copied support dll's files etc.)
When it completes, you will see a menu to view different folders. Project Folder is one of them.
It also comes in very handy when testing new .bas files that have passed the compiling stage.
|
|
stumpy
Member in Training
Posts: 66
|
Post by stumpy on May 1, 2023 20:48:08 GMT
Thanks xxgeek I will try it. Somehow, ages ago -
In the original package made with 'Just BASIC v1.01', I had managed to change the usual icon (.ico file) of the jbrun2.exe application
(i.e. that present after using 'make tkn' and renaming it to 'breeders.exe')
normally like this:
to this:
which I have extracted as a .ico file, and, within 'Just BASIC v2.0', I have already succeeded in putting that on a shortcut
but would like it to go on the .exe too, as before and can't remember how I did it
Please advise
|
|
|
Post by xxgeek on May 1, 2023 21:47:17 GMT
This is from the help file in Just Basic v2.0 (not easy to find without the Help Search engine) Changing Your Application's Icon Once you've created an icon in the icon editor, you can insert it into your application by choosing "Save to Runtime EXE" from the "File" menu. When an icon has been saved into your application's EXE file, it will display in file lists in Windows Explorer, it will appear if a desktop shortcut is created, and it will appear in the titlebar of the running program. Here is an example that shows how to change the icon for an application named freeform.exe. - Start Just BASIC if needed. - Click on the "Setup" menu and choose "Icon Editor". - Paint your icon now, or click on the "File" menu in the Icon Editor to open a pre-made icon file. - Click on the "File" menu and then choose "Save to Runtime EXE". - Find the freeform.exe file in the file dialog that appears, select it, and click on Open. There are also freeware apps that will replace an icon in an EXE file. I used Resource Hacker for years, and it is still freeware. Latest build 5.1.8 (build 360) www.softpedia.com/get/Programming/File-Editors/Resource-Hacker.shtmlOther members may know of other apps that are easier to use.
|
|
stumpy
Member in Training
Posts: 66
|
Post by stumpy on May 2, 2023 13:02:06 GMT
That's great. When I get my Win11 laptop back from having a better battery fitted I will use one of those methods thank you.
I don't know how they get the back off Dell XPS when the screws are so microscopic. None of my tiny screwdrivers seemed to fit properly
and didn't want to risk rounding off even one of the multiple cross shaped screw slots.
|
|
stumpy
Member in Training
Posts: 66
|
Post by stumpy on May 4, 2023 20:23:48 GMT
This is from the help file in Just Basic v2.0 (not easy to find without the Help Search engine) Changing Your Application's Icon Once you've created an icon in the icon editor, you can insert it into your application by choosing "Save to Runtime EXE" from the "File" menu. When an icon has been saved into your application's EXE file, it will display in file lists in Windows Explorer, it will appear if a desktop shortcut is created, and it will appear in the titlebar of the running program. Here is an example that shows how to change the icon for an application named freeform.exe. - Start Just BASIC if needed. - Click on the "Setup" menu and choose "Icon Editor". - Paint your icon now, or click on the "File" menu in the Icon Editor to open a pre-made icon file. - Click on the "File" menu and then choose "Save to Runtime EXE". - Find the freeform.exe file in the file dialog that appears, select it, and click on Open. There are also freeware apps that will replace an icon in an EXE file. I used Resource Hacker for years, and it is still freeware. Latest build 5.1.8 (build 360) www.softpedia.com/get/Programming/File-Editors/Resource-Hacker.shtmlOther members may know of other apps that are easier to use.
Resource Hacker was a bit of a puzzle, but I tried to follow the example you gave as follows
1. icons in old exe, where the App breeders v4.20 carried the icon called MONDRIAN
--------------------------------------------------------------------------------------------------------------
2. properties of 'pbr icon', after MONDRIAN from 1.) had been renamed 'pbr icon' and saved as .ico
-------------------------------------------------------------------------------------------------------------------
3. BAS> setup> icon editor: About to open the required 'pbr icon' (the .ico file in 2. above)
-------------------------------------------------------------------------------------------------------------------------------
4. Tried to open it with Icon Editor but 'unsupported icon format' (and where is the error.log file located?)
-------------------------------------------------------------------------------------------------------
- So I am not sure what I did wrong................Please advise some more
|
|
|
Post by tsh73 on May 5, 2023 7:06:29 GMT
Hello stumpy Ditch Icon editor, finish with Resource hacker
So I went and installed Resource hacker from the link got an icon from other program open JB created EXE (actually renamed jbrun2.exe, with JB icon) opened "Icon group" Right click on icon under "Icon Group", selected "Replace icon" In new window, clicked on "Open file with new icon", selected prepared icon pressed Replace back in ResHacker pressed Save icon Now Windows Explorer shows new icom on my JB EXE file.
|
|
stumpy
Member in Training
Posts: 66
|
Post by stumpy on May 5, 2023 12:14:52 GMT
Hello again tsh73
I have now been able once more to change the icon which appears on the .exe so thank you very much for that.
I guess you had to explain it when I was trying to do it before, but I had forgotten all about it!
|
|
|
Post by tsh73 on May 5, 2023 19:49:31 GMT
Nice quote from Thief of time, Sir Terry Pratchett
Glad to help. But might be as well be not me last time ;)
|
|