Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 07:57 20 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : (CMM v4) New SpriteMite release.

     Page 1 of 2    
Author Message
darthmite

Senior Member

Joined: 20/11/2011
Location: France
Posts: 240
Posted: 05:02am 02 Sep 2012
Copy link to clipboard 
Print this post

Hi
Long time without posting something made my fingers become nervous
Nick the SpriteMite 'beta tester' have give me some idea and
tell me where he see bugs and what was to do to made the soft better.
Now the soft can :
Get actual Sprite and :
-copy to next
-copy to previous
-take Sprite number1 to number2 and copy them to number3 (this work in reverse mode too).
-Move Up
-Move Down
-Move Left
-Move Right
-Flip Horizontal
-Flip Vertical
-Mirror from Up to Down
-Mirror from Down to Up
-Mirror from Left to Right
-Mirror from Right to Left
-Rotate 90 deg to Left
-Rotate 90 deg to Right
That was for the Sprites Edition.
You can show the Animation from them too.
Just enter the 1st Sprite from the Animation Set in 'Animate from' and the
last Sprite from the Animation set in 'Animate to" and press the "Play" Button.
Slide the Animation Speed for made it faster or slower.
Press the Edit Fonts button and here you can edit new character for made
your own fonts set.
Best is to try yourself for your Colour Maximite projects.
Here it is : 2012-09-02_145611_SpriteMite.zip
They are two executables in this archive.
SpriteMite_x32.exe is for win xp,vista x86 and seven x86
SprMite.exe is for vista/seven x64.
Anyway , thanx to Nick who put allot time in testing this soft and
helping me to made it better

Cheers.

Darth.
Edited by darthmite 2012-09-03
Theory is when we know everything but nothing work ...
Practice is when everything work but no one know why ;)
 
psergiu

Regular Member

Joined: 09/02/2013
Location: United States
Posts: 83
Posted: 04:19pm 30 May 2014
Copy link to clipboard 
Print this post

I tried SpriteMite on Crossover (Wine for OS X). It works, but the colours Green & Cyan are reversed - does this happens to anyone running it on a "real" Windows ?

Also - SpriteMite is not able to ignore any existing comments in a sprite file.

Thanks.
 
darthmite

Senior Member

Joined: 20/11/2011
Location: France
Posts: 240
Posted: 11:12pm 30 May 2014
Copy link to clipboard 
Print this post

Hi ,

Sprite file format was set to be directly usable with mmbasic , it's fixed and we can't add comment everywhere ;).
I just re start this program on my actual win7 , no colors problem , tested on a XP
in virtualbox , everything is ok
I never have use Wine or Mac , then if you can , give a try in virtualbox with win XP.
Or , if you use Delphi you can modify the source i attach here for see if you can get
the right colors on your Mac.

2014-05-31_091124_SprMite.zip

Cheers.
Edited by darthmite 2014-06-01
Theory is when we know everything but nothing work ...
Practice is when everything work but no one know why ;)
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 05:45am 31 May 2014
Copy link to clipboard 
Print this post

Darthmite, why you don't try to move to Lazarus+FreePascal? Your projects will become crossplatform.Edited by vasi 2014-06-01
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
psergiu

Regular Member

Joined: 09/02/2013
Location: United States
Posts: 83
Posted: 05:59am 31 May 2014
Copy link to clipboard 
Print this post

Actually, comments are allowed.

Quot tha latest MMBasic Manual, page 70:
  Quote  A comment line has an apostrophe (') as the first character and can occur anywhere. A comment line is completely ignored; all other lines are significant.


If you decide to update the editor, you can add a text field for a comment line to be inserted before each sprite - by default containing the sprite number - would be VERY useful if you need to view/edit the sprite file i a text editor.

I tried-it in VirtualBox running Win7 and i the colours are still reversed.



The correct colour order is: (RGB)
Black (000)
Blue (001)
GREEN (010)
CYAN (011)
Red (100)
Violet (101)
Yellow (110)
White (111)

Thanks...
 
darthmite

Senior Member

Joined: 20/11/2011
Location: France
Posts: 240
Posted: 10:29am 31 May 2014
Copy link to clipboard 
Print this post

@vasi , i switched to CodeTyphon(Lazarus) but the Sprite editor for my stm32
graphics engine use 16bits / pixels.
I don't use the Maximite actually because i need the speed of C on my project ;).
If you want modify the Save routine for mmbasic , the source is here :
New Sprite editor

@psergiu , strange that the colors are reverted for you.
I just reopen the lemmings sprites and other i have use for my MM games demo and
it appear ok here ...
I don't use RGB coding , it's just 8 color and was easy to just use number 0 to 7 with
the mmbasic specification(at the time i made the soft).
If the color number have change , then just change the corresponding number in the
Sprite Save routine and as-well in the Load one.
For the comment it is easy to change too , just ignore line with the (') char at start :)



Cheers.


Theory is when we know everything but nothing work ...
Practice is when everything work but no one know why ;)
 
darthmite

Senior Member

Joined: 20/11/2011
Location: France
Posts: 240
Posted: 11:12am 31 May 2014
Copy link to clipboard 
Print this post

I was curious to see how fast we can convert Delphi to Lazarus ...
Was so fast that the SprMite is now for Lazarus too :)

Here is the source : 2014-05-31_211126_SprMite_v2.2.zip

I cant put the exe in the zip , it will be more than the 500k allowed.
Now just compile with the Mac Lazarus

Cheers.


Theory is when we know everything but nothing work ...
Practice is when everything work but no one know why ;)
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 01:11pm 31 May 2014
Copy link to clipboard 
Print this post

Thanks Darthmite, I wanted to try it myself but is better when the author of the project is doing it.
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
psergiu

Regular Member

Joined: 09/02/2013
Location: United States
Posts: 83
Posted: 07:02pm 31 May 2014
Copy link to clipboard 
Print this post

Thanks for the source code !

Your screenshot shows the colors reverted too. From the first Colour MMBasic release, Green has been 2 and Cyan 3. You have them the other way around in your source code. Save that Lemming sprite and load-it into a Maximite - you will notice that the hair will be Cyan instead of Green

I installed the Mac lazarus, loaded the project (fixed the Green/Cyan mishap), Deleted "Windows" and "Character" from "uses" and added "LCLType" else the compiler screamed bloody murder.

The application compiles, runs, i can interact with the colours and with the grid but i cannot move the window or click on any control... Anyone played with Lazarus on a non-windows platform ? Last time i used a IDE for programming was with Turbo/Borland Pascal ... i'm lost

Thanks !
 
darthmite

Senior Member

Joined: 20/11/2011
Location: France
Posts: 240
Posted: 11:42pm 31 May 2014
Copy link to clipboard 
Print this post

Ok ,

I reverted the Lime and Aqua colors.
After adding only ONE line of code we can now add comment everywhere after the
header block.

Take the new source : 2014-06-01_100526_SprMite_v2.3.zip

Enjoy.

PS: With the new colors my Lemmings are now Ugly !!
Edited by darthmite 2014-06-02
Theory is when we know everything but nothing work ...
Practice is when everything work but no one know why ;)
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 03:55am 01 Jun 2014
Copy link to clipboard 
Print this post

The 2.3 version (the only I tested) works! Painted a sprite, saved, cleared the working area, loaded again. Works!





What I did:
- Ignored the Lazarus project and put Lazarus to import the Delphi project again;
- Complained about "Character" unit and ignored it;
- Couldn't pass compilation as there is no "Character" unit so I deleted it from "uses";
- Compiled successfully and executed the application without error.

___________
Used Lazarus for Linux, didn't used CodeTyphon.Edited by vasi 2014-06-02
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 04:01am 01 Jun 2014
Copy link to clipboard 
Print this post

@darthmite, I can't find "About" button... can you please rectify your code? Your name should be there, no matter under what license you release the code.
Or at least, on the window title bar:
"SpriteMite for Colour Maximite 2.3 by YourNameHere"Edited by vasi 2014-06-02
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
darthmite

Senior Member

Joined: 20/11/2011
Location: France
Posts: 240
Posted: 04:43am 01 Jun 2014
Copy link to clipboard 
Print this post

He he ,
i never add 'about' button or menu because i don't care what other are doing
with my sources
It's here for help MMBasic programmer and i hope it will.
By the way , if Geoff is around there he can put this new version on
his library that every can have the soft directly (but compile first !!).
Will the forum not limit the zip upload to 500k i will put it here myself.
About this , can the moderator up this limit a little (like 2 or 3Mb) ??

Cheers.

Theory is when we know everything but nothing work ...
Practice is when everything work but no one know why ;)
 
psergiu

Regular Member

Joined: 09/02/2013
Location: United States
Posts: 83
Posted: 12:42pm 02 Jun 2014
Copy link to clipboard 
Print this post

I'm not succeeding in compiling a working version on OS X. The window is frozen, none of the buttons work, all the hints from the Lazarus wiki are for ancient versions and there is no useful information anywhere.

Can anyone please compile a working Windows binary ? In the meantime i'll see how to get back that 1Gb of space that useless Lazarus occupies.
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 01:06pm 02 Jun 2014
Copy link to clipboard 
Print this post

I wish I had an OS X to help you...
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
darthmite

Senior Member

Joined: 20/11/2011
Location: France
Posts: 240
Posted: 10:49pm 02 Jun 2014
Copy link to clipboard 
Print this post

I compiled under win7 x64.
I hope the link work
SprMite 2.3 win7 x64
And this one compiled under XP Sp3.
SprMite 2.3 x32
Edited by darthmite 2014-06-04
Theory is when we know everything but nothing work ...
Practice is when everything work but no one know why ;)
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 01:40am 03 Jun 2014
Copy link to clipboard 
Print this post

Darthmite, I saw the image from the site... interesting thing you have there. A micro drawing random lines on a color LCD and a lot of switches arranged in a sort of keyboard...Edited by vasi 2014-06-04
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
darthmite

Senior Member

Joined: 20/11/2011
Location: France
Posts: 240
Posted: 06:09am 03 Jun 2014
Copy link to clipboard 
Print this post

Everything is on my site , schematic , source code etc ...
Take it , use it , modify it
If it can give another idea to Geoff for the Maximite , then just convert
the code to Pic32.

Cheers.

Theory is when we know everything but nothing work ...
Practice is when everything work but no one know why ;)
 
psergiu

Regular Member

Joined: 09/02/2013
Location: United States
Posts: 83
Posted: 05:37pm 04 Jun 2014
Copy link to clipboard 
Print this post

Thank you very much, the x32 version works perfectly under Crossover/WINE, the colours are in the correct order and it loads sprite files with comments without any issue.
 
darthmite

Senior Member

Joined: 20/11/2011
Location: France
Posts: 240
Posted: 10:51pm 04 Jun 2014
Copy link to clipboard 
Print this post

Just don't forget that if it's ok to load a file with comments.
When you re-save the file , all comment will be wipe out

Theory is when we know everything but nothing work ...
Practice is when everything work but no one know why ;)
 
     Page 1 of 2    
Print this page
© JAQ Software 2024