Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
112 user(s) are online (64 user(s) are browsing Forums)

Members: 1
Guests: 111

VooDoo, more...

Headlines

 
  Register To Post  

ChocolateCastle (mui mcc generator) and Libmaker (library generator) for os4
Home away from home
Home away from home


See User information
Some time ago browse aminet, and found that was released (or just reuploaded?) new version of Chocolate Castle: Parametrized MUI MCC code generator , writen by Krashan for morphos: http://aminet.net/package/dev/mui/chocolatecastle

In few words: its for those ones who write mui apps from scratch, and want to automate mui custom class code creation.

I do not know if Krashan still works on it, and what is new in that 0.8 version (as far as i can see all changelogs point out to 0.7 version only), and who is now mantain it if not him (so i can apply aos4 changes to)..

All i do its make it works on os4 with some help (you know who you are:) ), added some code to make iconification on wb to have icon, stack cookie, fixed few little typos, made some cosmetic (a little update .guide, os4 native icons), but what is most important: made that mui mcc code generation be os4 related. Currently it through use IPTR for some defines , as well as you need to use -D__USE_INLINE__ for. If anyone will have needs for some changes in produced code, feel free to suggest, as it easy to change.

(press "open in new tab", to have fullsized image):
Resized Image

Anyway, before uploading it to os4depot there is for tests: http://kas1e.mikendezign.com/aos4/ChocolateCastle_03.lha

There is also LibMaker (see post #7 for more info) and download link.

Have fun!


Edited by kas1e on 2017/1/30 20:25:00
Edited by kas1e on 2017/1/30 20:25:39
Edited by kas1e on 2017/1/30 20:33:40
Edited by kas1e on 2017/2/10 19:10:38
Edited by kas1e on 2017/2/10 19:11:19
Edited by kas1e on 2017/2/14 11:01:31
Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: ChocolateCastle for os4: MUI MCC code generator
Just can't stay away
Just can't stay away


See User information
@kas1e

I don't use MUI, but this sounds like a lovely ide! Hurray!

Go to top
Re: ChocolateCastle for os4: MUI MCC code generator
Just can't stay away
Just can't stay away


See User information
@kas1e
According to the article on this page:
http://www.warmup-asso.fr/article.php?sid=1871&thold=0
LibMaker succeeds the old ChocolateCastle program.
I don't know if it includes the MCC code generator or is a completely different program. It might be worth checking out. It's on Aminet too.

Amiga X1000 with 2GB memory & OS 4.1FE + Radeon HD 5450

Go to top
Re: ChocolateCastle for os4: MUI MCC code generator
Home away from home
Home away from home


See User information
@xenic
Yeah, indeed. Will be good to port that one as well.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: ChocolateCastle for os4: MUI MCC code generator
Home away from home
Home away from home


See User information
@xenic
I made initial port of LibMaker as well:

Resized Image
(press on image for full size)

Through as Krashan say LibMaker heavily relies on MorphOS lua.library, so to make it run on os4 i had either reimplement lua.library for OS4 or link with Lua statically and replace lua.library calls with Lua C API calls (which are mostly 1:1) : and that what i doing already, through not fully deal with at moment, so no test binary at moment.

Also, even if it looks like ChocolateCastle successor, it is currently build libraries only, but not mui classes (even if it have some ghosted buttons for future to integrate with).

So, there will be good to have both apps : one for mui class generation, another one for libraries generation.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: ChocolateCastle for os4: MUI MCC code generator
Home away from home
Home away from home


See User information
@kas1e

Just translated it in italian, please add it in archive

http://s000.tinyupload.com/index.php?file_id=61457503593928345433

Go to top
Re: ChocolateCastle (mui mcc generator) and Libmaker (library generator) for os4
Home away from home
Home away from home


See User information
@all
After a while ported LibMaker as well!

Resized Image

Don't skip, its more than just generator :) You can save/load "projects", so you always can remove/add new functions/arguments/etc to your library. Original part from readme:

Quote:

LibMaker is a GUI based tool generating code skeletons of shared libraries. As such it is the successor of old ChocolateCastle program. After entering specifications of a library and its set of function, LibMaker generates a complete, ready to compile project template, with makefile and standard include files. Version 0.11 can generate a shared library skeleton for MorphOS or for AmigaOS 3 (M68k). Defined library projects may be saved for later reuse or adding new functions. LibMaker preserves existing functions, so library can be developed incrementally. The program features extensive bubble help, so there is less need to look at the manual. Future versions of the program will handle BOOPSI and MUI classes, as well as generation of code for AmigaOS 4.

The code generation is performed by Lua scripts, which may be modified by users. New scripts can be added without program recompilation, for example using SDI macros, or generating static libraries.



Porting wasn't very easy, as it based on morphos lua implementation, where it implemented as shared library (lua.library), and all the functions are morphos specific (through most of them are the same equavalents of originals). So what i do in end:

-- make it builds for os4: relevant makefile for os4, rewrite hooks and dispatchers, added missing functions and so on.
-- replaced all lua.library morphos functionality on usual lua's ones which inbuild staticaly to binary.
-- fixed a bit lua scripts so they works on os4. Changes are just remove of "require('base')" as on morphos that module done as shared one, and have no needs to be required on os4 version of statically builded lua.
-- os4 version of stack cookie
-- added code to have iconification on WB with app's icon and not with default mui one.
-- os4 native icons
-- fixed some mui related bugs with help of Thore (like transparency of some checkmark objects, trashed memory in some situations and co).
-- usuall stuff which make no sense to point out.

Through, currently it generate libraries skeletons for OS3 and MORPHOS only, adding of AOS4 support there is kind of trivial, just need to make the same lua script (see libgen.lua in os3 or mos scripts directory). And if anybody can help me with, that will be helpfull. Adding AOS4 button for generator will be trivial.

There is:
http://kas1e.mikendezign.com/aos4/LibMaker_01.lha


Also,

New version of ChocolateCastle:
- Fixed transparency of some checkmark objects, thanks Thore
- Added italian catalog by Samo

There is: http://kas1e.mikendezign.com/aos4/ChocolateCastle_02.lha

Also, all source code with aos4 changes uploaded to my github acc: https://github.com/kas1e/mui_ports_to_os4 , from where if all will be going well Krashan will integrate to latest versions of his apps. But in meantime for checking and maybe for learning purposes that can be helpfull.

Everything done with "amigaos4 ifdefs", so it is easy to see what i change.

Enjoy !


Edited by kas1e on 2017/2/10 19:44:59
Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: ChocolateCastle (mui mcc generator) and Libmaker (library generator) for os4
Home away from home
Home away from home


See User information
@kas1e

Italian translation of LibMaker done aswell

http://s000.tinyupload.com/index.php?file_id=96152462365772682159

Still some missed strings unfortunely ...

Go to top
Re: ChocolateCastle (mui mcc generator) and Libmaker (library generator) for os4
Home away from home
Home away from home


See User information
@samo79

In ChocolateCastle i got a crash trying to close the "Select type of Project" subwindow while the main window was opened ..

Quote:
Crash log for task "ChocolateCastle"
Generated by GrimReaper 53.19
Crash occured in module kernel at address 0x018149B0
Type of crash: unknown exception
Alert number: 0x0100000F

Register dump:
GPR (General Purpose Registers):
0: 0181B604 4E4E2A20 00000000 018149C8 50A0A910 021CAB0C 021CAAFC 021CAB6C
8: 582BD510 00000001 00000000 5FFFA800 20422288 47B75414 00000000 47202340
16: 6BC2ACE4 00000000 00000000 00340014 02280000 47B70000 6EDA9476 47B6D464
24: 58A09154 5FFFA800 00000001 4E4E2A20 021CD992 50A0A910 50A0A910 020B973C


FPR (Floating Point Registers, NaN = Not a Number):
0: 1 1014 217 0
4: 0 430.8 30.8 0
8: 0 4.5036e+15 430.8 30.8
12: 1445 248 0 -5.05923e-321
16: 0 1.39067e-309 0 0
20: 0 0 0 1.61895e-319
24: 4.94066e-324 0 1.08779e-311 -1.28745e+36
28: 1e+06 0 -0.0179799 742.28

FPSCR (Floating Point Status and Control Register): 0x82004000


SPRs (Special Purpose Registers):
Machine State (msr) : 0x0002B030
Condition (cr) : 0x4CFA9DA0
Instruction Pointer (ip) : 0x018149B0
Xtended Exception (xer) : 0x018233AC
Count (ctr) : 0x00000000
Link (lr) : 0x00000000
DSI Status (dsisr) : 0x01842B34
Data Address (dar) : 0x00000000



680x0 emulated registers:
DATA: 58A83CAE 00000003 00000000 00000000 00000000 00000000 00000000 00000000
ADDR: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 4E4E22C0
FPU0: 0 0 0 0
FPU4: 0 0 0 0



Symbol info:
Instruction pointer 0x018149B0 belongs to module "kernel" (HUNK/Kickstart)

Stack trace:
native kernel module kernel+0x000149b0
native kernel module kernel+0x0001b60c
module SetPatch at 0x6FFCBE48 (section 5 @ 0x5E24)
native kernel module kernel+0x00017820
module LIBS:icon.library at 0x6FFA4118 (section 5 @ 0x1A0F4)
module LIBS:icon.library at 0x6FFA46C4 (section 5 @ 0x1A6A0)
ChocolateCastle:CastleAppRemoveGenerator()+0xc4 (section 1 @ 0x8584)
native kernel module intuition.library.kmod+0x00021448
native kernel module intuition.library.kmod+0x000215ec
native kernel module intuition.library.kmod+0x0000a3f4
native kernel module intuition.library.kmod+0x0000a034
ChocolateCastle:main_loop()+0x110 (section 1 @ 0x2F4)
ChocolateCastle:main()+0x48 (section 1 @ 0xD08)
native kernel module newlib.library.kmod+0x000020ac
native kernel module newlib.library.kmod+0x00002d5c
native kernel module newlib.library.kmod+0x00002ef0
ChocolateCastle:_start()+0x170 (section 1 @ 0x16C)
native kernel module dos.library.kmod+0x000255c8
native kernel module kernel+0x0003e7b4
native kernel module kernel+0x0003e7fc

PPC disassembly:
018149a8: 606349c8 ori r3,r3,18888
018149ac: 44000002 sc
*018149b0: 4e800020 blr
018149b4: 7c641b78 mr r4,r3
018149b8: 3c600181 lis r3,385

System information:

CPU
Model: AMCC PPC440EP V1.3
CPU speed: 799 MHz
FSB speed: 133 MHz
Extensions:

Machine
Machine name: Sam440EP
Memory: 1048576 KB
Extensions: bus.pci




Go to top
Re: ChocolateCastle (mui mcc generator) and Libmaker (library generator) for os4
Just popping in
Just popping in


See User information
Every project on github automatically gets a bugtracker. I really recommend to use it.

Why stop it now, just when I am hating it?

Thore Böckelmann
Go to top
Re: ChocolateCastle (mui mcc generator) and Libmaker (library generator) for os4
Home away from home
Home away from home


See User information
@samo
Thore fixed that crash, there is new version:
http://kas1e.mikendezign.com/aos4/ChocolateCastle_03.lha

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: ChocolateCastle (mui mcc generator) and Libmaker (library generator) for os4
Home away from home
Home away from home


See User information
@kas1e
@thore

Thank you guys

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project