First Symbos Application

Pagina 2/47
1 | | 3 | 4 | 5 | 6 | 7

Van edoz

Prophet (2465)

afbeelding van edoz

05-01-2014, 16:18

Thanks! .. Then 0.991 is the latest version Big smile
I just found out how I can move a imagebox Big smile how cool is that! Lot's of trying but it is working!

;**** Code called on event occuring on Button1
FUNCTION Button1_Event
	
	a=Dialog("Position Box1 : "+Str$(b),1,1)
	;SetObjWidth(ImageBox1_ID,b)
b=b+10
	SetObjPos(ImageBox1_ID,b,b)


	RefreshObj ImageBox1_ID

ENDF

Van edoz

Prophet (2465)

afbeelding van edoz

05-01-2014, 19:18

I got the paint program to work SmileLOL (From the samples) Works pretty good..(if you not do a form refresh Wink. I like the symdev .. it's nice to play with.

Van Prodatron

Paragon (1836)

afbeelding van Prodatron

05-01-2014, 21:48

Hey, what a progress! Smile
I checked the graphic data of the puzzle and saw, that indeed the graphics haven't been converted correctly. What you see on the screen seems to be exactly that, what is stored in the code (ImageBox1_GraphicData etc.).
As a first step I would resize all boxes to 120x120 (no 121x120 or 120x121 anymore).

Van edoz

Prophet (2465)

afbeelding van edoz

05-01-2014, 23:07

Thanks, for taking the time to check the image data. I will adapt the resolution and try it again.
Maybe this could work. In the mean time I try to play around and get familiar with all the basic commands. Unfortunately they are not documented but with a lot trail and error I found already some useful functions that can be used.

Van Maggoo

Paragon (1217)

afbeelding van Maggoo

05-01-2014, 23:53

Keep up the good work Edoz! It's nice to see new development for Symbos.

@ Prodatron: Was the Symbos text editor ever completed?

Van Prodatron

Paragon (1836)

afbeelding van Prodatron

06-01-2014, 00:26

@Maggoo: Yes, it is, but I didn't finish the MSX version of SymbOS (2.1) last year. New year - new luck Smile

Van NYYRIKKI

Enlighted (6016)

afbeelding van NYYRIKKI

06-01-2014, 01:44

@edoz
Now that is seriously cool!!! I think you might be the first MSX-developer (besides Prodatron) to really do something serious with SymbOS. Way to go, I really wait for your applications!

Van Trebmint2

Master (242)

afbeelding van Trebmint2

06-01-2014, 11:02

@edoz
Hi its cool to see somebody using symstudio and symbos, even though I must admit symstudio is kinda broken.

The problem with symstudio seems to be from looking at the source again that the last few versions I was trying to improve Symbasic by adding all the functions as Libraries, so that it only ever added coded if it was called (quite clever), however I did something that broke at that time and I never got round to fixing it.... and now years and years on the code looks like a mad mess of spaghetti.

I will take alook at it over the next few days, and pass results and tests on to Prodatron and we'll see if we cant get this to a stage it works and perhaps release all the source. It was written in a langauge called Blitz Basic3d and that was fine for the initial start, but TBH it wasnt a good choice to develop a full IDE/Gui/Compiler/Assember/Editing/Graphics Suite and hence its a complex mess haha. Oh well

Van edoz

Prophet (2465)

afbeelding van edoz

06-01-2014, 13:25

I'm just a big fan of symbos and would like to create some application for it indeed! But beware I'm just a beginner in MSX dev. I have no knowledge about Z80 assembly unfortunately. So I’m just depending on my ‘basic’ basic-skills. It’s true that symstudio is kinda broken. Sometimes I got errors and crashes. (for example, If you change the resolution in windows etc.) But on the other hand I can do something with symstudio, it’s easy accessible for me because I have some professional experience with dot.net (VB). So many thinks looks familiar and easy to use. There is no basic documentation, but with the samples and lot of debugging I just found out how some functions works! I use a windows XP Virtual Machine for developing, that seems to be most stable so far. Symbos/Symstudio is very impressive! Within a couple of hours I got something to work! Very impressive that you can use objects etc. I’m just try to make something with the current release, for learning… and maybe I need some help if I cannot fix it with the current basic implementation Wink As you can read I have some troubles with the image converting (Sheets) beside that it seems to work fine!

If you have more samples or documentation that would be very nice! (Or other tools that you used couple year ago ?) I only have symstudio 991.

Van Trebmint2

Master (242)

afbeelding van Trebmint2

06-01-2014, 14:25

Hey, yeah the Sheets thing is a little complex, but as you can probably guess the whole cross platform, 2/4/16/256 colour thing is complex. The main thing with the sheet page is to give an idea of what it looks like in various computer rez and modes.

I dont know if you've looked at the Picture project, but it kinda describes how images work. First you have to include a sheet into the code. This is done by referencing the sheet number, as this will create the graphic data when compiled. It doesnt include the sheets automatically - you have to tell it to in the code. This is compiler directive and isnt converted into any sort of code other than it creates that file for you in the project.

IncludeSheet "yellowfish",1,1,32,32
IncludeSheet "bluefish",2,1,32,32

This in effect creates 2 files called yellowfish.gsh and bluefish.gsh within the .dsk. the second operand is the Sheet they are taken from i.e Sheet 1 and Sheet 2. The third is the format its output in 0 is 4 colour, 1 is 16 colour.
The third and fourth operands indicate the size of tile they should be sorted into. For instance an image thats 256x256 can be sorted into 64x64 chunks left to right and top to bottom and they are then considered to be tiles 0-15 datawise.

If you want to create seperate images for 4 / 16 / 256 colour you have to use individual IncludeSheet directives to create the files

Then you can load an image as such
FishImage = LoadSheet("yellowfish.gsh")
Then you assign a Tile part of a sheet to an Objects Id
SetObjGraphic ( Tile1_ID , FishImage , 0)
SetObjGraphic ( Tile2_ID , FishImage , 1)
SetObjGraphic ( Tile3_ID , FishImage , 2)
etc

Thats how it should work. Its complicted in that no tool created the file format for symbos, you cant just add .jpg or .gif to symbos projects, so the Sheet method within SymStudio was designed to do it. Once you get the hang of it its fairly elegant I thought

Pagina 2/47
1 | | 3 | 4 | 5 | 6 | 7