Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => Topic started by: Dragon__lance on July 05, 2006, 03:12:00 pm

Title: Xlib Guru
Post by: Dragon__lance on July 05, 2006, 03:12:00 pm
xlib guru can now be found http://xlib.revsoft.org/index.php?title=Tutorial

Well, i've decided to carry on Necro's proposed idea of the Xlib Guru, a tutorial to help BASIC programmer's learn how to use xlib. I would really like to see this as a community project, contributed to by all members of the Calc programming society,not just omnimaga :)smile.gif If you would like to add in your own section,please just post it here,or pm/email me.

I am also looking for someone to help with formatting the tutorial, as i would like to see it in HTML, (but seeing it as i know crap about html),i'll need some major help there...if you can help out please pm/email me :)smile.gif


The plan of this tutorial-
 -written explanation of all xlib functions
 -grayscale?
 -tips and tricks
 -map making,scrolling,etc...

Anyways, i hope for this to be a tutorial written just not by me, but by many,and be a community project! :)smile.gif

btw, if you're wondering why i decided to write this,tr1p1ea included me in the credits of xlib, and i felt very undeserving of that, so i hope to help out in my small way :)smile.gif

Well here's the first part that explains sprite usage and detailed explanation of the sprite command of xlib.I plan on adding some more tips and tricks with the sprite command, so expect more!
Title: Xlib Guru
Post by: Spellshaper on July 06, 2006, 01:30:00 am
neat! I think I'll contribute some things...
As for making it html: I normally write in Word and then just paste paste it into my online blog editor ^^
Apparently it automatically converts it into html, it always worked.

I'd like to help as much as I can. :)smile.gif
Title: Xlib Guru
Post by: tifreak on July 06, 2006, 01:33:00 am
You get me a .txt, divided in sections, I will get you an html document, useable on the web, and as a zipped commponent. ;)wink.gif  That is one of the few things I am good at. ;)wink.gif
Title: Xlib Guru
Post by: Spellshaper on July 06, 2006, 01:41:00 am
Now THAT is a kewl offer ^_^  
Title: Xlib Guru
Post by: Dragon__lance on July 06, 2006, 04:06:00 am
thanks guys! That would be great tifreak8x :)smile.gif If there is any particular subject anyone wants to write a tutorial on,just post it here,ex: grayscale,scrolling tilemaps,etc... :)smile.gif
Title: Xlib Guru
Post by: Zeromus on July 06, 2006, 07:44:00 am
http://cdi.calcgames.org/gstut.zip GreyScale tut you can use
Title: Xlib Guru
Post by: Dragon__lance on July 06, 2006, 07:54:00 am
thanks! I'll take a look at it :)smile.gif did the file i sent you for Pure come out ok? Anyways,here's most recent version, i added some more to sprites!  
Title: Xlib Guru
Post by: Spellshaper on July 06, 2006, 08:08:00 am
As for the sprite creating part, you could subsitute this with a link to Draw 'n Map once it's done, which should be soon XDsmiley.gif
Title: Xlib Guru
Post by: Dragon__lance on July 06, 2006, 09:30:00 am
aye, that'd be great! I'll definitely add recommend users to use map 'n draw, i tried out the program, i think it's awesome! :thumb:thumb.gif Can't wait till it's release! :)smile.gif
Title: Xlib Guru
Post by: Spellshaper on July 06, 2006, 11:07:00 am
QuoteBegin-Dragon__lance+Jul 6 2006, 10:30 PM-->
QUOTE (Dragon__lance @ Jul 6 2006, 10:30 PM)
Can't wait till it's release! :)smile.gif

 That depends how long lolje needs to upload his version after I uploaded mine, so I can see what changes he did. :lol:laugh.gif
Title: Xlib Guru
Post by: BCTurk on July 12, 2006, 07:13:00 am
I can do alot of the lesser sections (including Everything from change contrast (5) to getkey (8), and CalcVersion (11) and Ram (14))
Title: Xlib Guru
Post by: Halifax on July 12, 2006, 12:35:00 pm
I could give you a tutorial for grayscale that has a guy moving around with hit detection on a grayscale map if you want me to. :)smile.gif
Title: Xlib Guru
Post by: DJ Omnimaga on July 12, 2006, 01:10:00 pm
wow I missed this topic completly o.oblink.gif I need to stop only using today active topic function >.<

glad you started working on this :)smile.gif It will become the biggest xlib ressource for programmers, anyone is free to convert my omnicalc grayscale tutorial to xlib btw if you want to add more stuff in CDI's (altough imo CDI is alerady nice)
Title: Xlib Guru
Post by: Halifax on July 13, 2006, 11:45:00 am
Also I have something that I think no one has ever done. Made a number converter that converts a variable to make it come out as sprites with numbers you create if you want the code i could give it too you because it uses Xlib
Title: Xlib Guru
Post by: Demon on July 13, 2006, 11:50:00 am
I have something close to that in my sprite editor.  It's a XPSE plugin that lets you select a sprite and it will generate the code for you when you run the plugin.
Screenshots are here.
http://omnimaga.dyndns.org/index.php?showtopic=420

As for XLib Guru, I could make some animations of the functions you can add to the HTML version...
Title: Xlib Guru
Post by: Halifax on July 13, 2006, 02:00:00 pm
O thats pretty cool and yeah if you need any help with the HTML im here B)cool.gif
Title: Xlib Guru
Post by: Dragon__lance on July 14, 2006, 04:34:00 am
thanks a lot guys!! i'd appreciate the help very much :)smile.gif
BcTurk, if you could do the lesser section's of xlib from contrast,getkey,etc....that'd be awesome!!!
-Pyro xp2k if you could help with any animations or html related stuff, that'd be great too!

sorry i'm not around rightnow, currently away from home at OH :)smile.gif i'll get some more done with tilemap and sprites when i get back.
Title: Xlib Guru
Post by: DJ Omnimaga on July 14, 2006, 02:51:00 pm
thats cool stuff guys, keep it up
Title: Xlib Guru
Post by: Dragon__lance on July 17, 2006, 03:34:00 pm
killerplayer:the code for that would be great :)smile.gif In fact,any contribution of unique coded ways that use xlib would be great :)smile.gif

Anyways, i finished up the main description of tilemapping so here it is :)smile.gif

I'm gonna now work on the tips and tricks of tilemappin such as scrolling and such.If anyone here thinks they have the fastest possible scrolling methods, please post! :Ptongue.gif

Title: Xlib Guru
Post by: DJ Omnimaga on July 18, 2006, 02:38:00 am
wow there is 1 trics I didnt knew about in here o.oblink.gif (the real(0 second argument thing)
Title: Xlib Guru
Post by: Dragon__lance on July 18, 2006, 05:20:00 am
yeah,hehe,found it in the xlib readme :)smile.gif
Title: Xlib Guru
Post by: DJ Omnimaga on July 18, 2006, 05:37:00 am
I must have an old reAdme or cant read then >.<
Title: Xlib Guru
Post by: Dragon__lance on July 19, 2006, 02:31:00 pm
well i got a little more done  B)cool.gif collusion detection is finished,and a little part of scrolling,please tell me what you think  :)smile.gif Also,itd be great if someone is willing to provide some good scrolling code? :)smile.gif
Title: Xlib Guru
Post by: DJ Omnimaga on July 19, 2006, 02:44:00 pm
wow i dont have much time to read it now but it seems to get better and better! did gs tutorial got added yet?
Title: Xlib Guru
Post by: Dragon__lance on July 19, 2006, 03:13:00 pm
i'm planning on it! i'll have to ask tifreak8x to add it cause i don't know much html :(sad.gif If there are any wording or grammar errors,let me kno! :)smile.gif
Title: Xlib Guru
Post by: Dragon__lance on August 04, 2006, 10:17:00 am
well i added a masking part.I don't think this willl ever be truly finished,but i think that i'm done with it for a while.I'll email tr1p1ea about it and maybe he'll add it with the xlib package :)smile.gif but for now.....thats all thats gonna be done....unless anyone wants to help out!  
Title: Xlib Guru
Post by: tenniskid493 on August 04, 2006, 10:44:00 am
I can do the html for you if you want :)smile.gif  or tifreak8x is also another good person to help you.  I'm leaving tommorrow for vacation for 2 weeks so I might not be able to help you much for a while.
Title: Xlib Guru
Post by: DJ Omnimaga on August 04, 2006, 11:35:00 am
yay masking, do you think I could add the tutorial in both archive section of the forums when finished??
Title: Xlib Guru
Post by: Dragon__lance on August 04, 2006, 03:31:00 pm
wow,just got sudden motivation.I nvr knew tr1p1ea followed progress on this :Dbiggrin.gif anyways,bundling with xlib (as in putting it in the zip folder) looks questionable.I think it's time to transfer to HTML,so if anyone can help! (tifreak8x?)

Title: Xlib Guru
Post by: DJ Omnimaga on August 05, 2006, 12:48:00 am
wow great so far. I havent seen tr1p online for quite a while tho :(sad.gif , but it's true that since I quitted efnet and only go on irc://unitedti.org I dont have much chance of seeing him much anymore :(sad.gif
Title: Xlib Guru
Post by: kalan_vod on August 06, 2006, 08:35:00 am
Looking really nice, I wish I could help you with it or set it up in html but I am pretty busy now. If tifreak doesn't get a chance soon, I might find time for it :Ptongue.gif.
Title: Xlib Guru
Post by: Halifax on August 13, 2006, 03:39:00 pm
Someone should make an rpg maker for Xlib cause that would pwn
Title: Xlib Guru
Post by: Dragon__lance on August 13, 2006, 04:39:00 pm
Like Tifreak8x's?
Title: Xlib Guru
Post by: Halifax on August 13, 2006, 04:47:00 pm
yea
Title: Xlib Guru
Post by: DJ Omnimaga on August 14, 2006, 03:33:00 am
a rpg generator would rock, i know it would prbly require the user to do soem coding but still


if onl;y expr( (or whatever command that ran program commands) worked with everything it would pwn cuz we could have game generator on calc
Title: Xlib Guru
Post by: Dragon__lance on August 15, 2006, 05:28:00 am
hmmm...maybe an addon to xlib guru could be made, RPG guru, maybe just describing all the little coding techniques to making a RPG :Dbiggrin.gif
Title: Xlib Guru
Post by: DJ Omnimaga on August 15, 2006, 09:51:00 am
On the old omnimaga website (the first one back in april 2004) I was planning to write a tutorial on how to make a RPG like Illusiat 6, but I didnt had the motivation enough because i am more making games myself >.< . someone should make a xlib one
Title: Xlib Guru
Post by: Demon on August 15, 2006, 02:39:00 pm
I have an idea:  You could make xLIB Guru a Wiki page.  It would then be very easy for everyone to contribute to it.
Title: Xlib Guru
Post by: DJ Omnimaga on August 15, 2006, 02:41:00 pm
ooh yeah that could be an idea


I could host it on my UTI webspace I still have lot of free diskspace
Title: Xlib Guru
Post by: Dragon__lance on August 15, 2006, 03:32:00 pm
Ooooo,if you'd be willing to host xlib guru,and other's, that'd be totally awesome! As for a Wiki Space,it'd be super nice too, but i got no idea how to set one up :(sad.gif I'll have to see what i can do with rpg guru :)smile.gif As for now, i guess i'm open to any code snippets people would like to contribute that they would like to contribute! Such as Scrolling routines, A walking routine, GS routine, etc...  
Title: Xlib Guru
Post by: DJ Omnimaga on August 16, 2006, 01:52:00 am
well I downloaded media wiki i just need to figure out how to install it, which will be impossible at the moment because Unitedti MySQL is down :(sad.gif so I'll have to wait later


I think I'Ll start a forum for this
Title: Xlib Guru
Post by: DJ Omnimaga on August 16, 2006, 05:10:00 am
done

now i only have to wait until UTI got back online
Title: Xlib Guru
Post by: Dragon__lance on August 16, 2006, 06:43:00 am
Sweet,Thanks xlibman. So we gonna set up a wiki about this too? Or just leave at this forum?
Title: Xlib Guru
Post by: DJ Omnimaga on August 16, 2006, 10:11:00 am
well so far i have no luck with wiki softwares, first the one used by wikipedia use PHP 5.0 and UTI only support PHP 4.x i think, and the others are either too complicated or doesnt work fine. Atm papersnowman from HRP is trying to install it for me on my other UTI webspace (not the Omnimaga one)
Title: Xlib Guru
Post by: Dragon__lance on August 16, 2006, 03:05:00 pm
i see, that's still pretty awesome. I never imagined xlib guru would expand like this :Dbiggrin.gif So would we post the actual info on the Wiki, and discuss it here?
Title: Xlib Guru
Post by: Halifax on August 16, 2006, 04:34:00 pm
I have a four way scrolling thing that uses an Xlib to scroll from the user defined first matrix to the second
Title: Xlib Guru
Post by: CureDesu on August 16, 2006, 05:19:00 pm
I would just like to thank everyone for this guide. I have just skimmed through (it's 12:17 a.m. here, I'm tired  ;)wink.gif ) But so far it looks awsome (ecspecially the tilemapping). This really cleared things up for me that I didn't understand in the readme, so I'm sure this will be a great help to me during the process of making my game. Thanks again. :Dbiggrin.gif

Oh, Killerplayer: I'm interested in that 4-way scrolling thing.
Title: Xlib Guru
Post by: Halifax on August 16, 2006, 05:45:00 pm
Yea ill get it up tommorow im just rele rele tired now sorry
Title: Xlib Guru
Post by: DJ Omnimaga on August 17, 2006, 03:07:00 am
thanks for the feedback cure and the others, atm I am still trying to get the wiki to work, on UTI it will be no luck as it run on a low php version in safe mode and i am unable to access the database for some reason on my other webspace, so I will have to use an alternative. Right now I have also hosting at Revsoft, with PHP 5.0 support but i still need MySQL info, if supported, if not then I'll try to find another free host with no ads (since media wiki doesnt work with ads apparently), or I'll have to do this directly in omnimaga forums (which will not be good at all)

Btw if it works (I HOPE), we will have all the xlib guru info in a wiki, and hopefully ppl will be able to contribute their stuff, expand documentation, elaborate, improve it, etc, and it will eventually grow up signifiantly. The wiki will use this sub forum for discussion. If I get the wiki to work I may setup some more sub forum in this forum section as well to keep things more organised. Once it works we should let the community know about this :)smile.gif
Title: Xlib Guru
Post by: Dragon__lance on August 17, 2006, 04:42:00 am
This is sweet Xlibman, Thank's a ton! WoOt, time to start contributing coding snippets! That 4 way scrolling would be awesome Killerplayer, and anyone care to contribute a compression routine? :Dbiggrin.gif Also, would anyone care to help out and maybe make some images for xLIB guru, in the text file, you notice that i used ASCII, i'd like to convert to real calc images now :)smile.gif
Title: Xlib Guru
Post by: merthsoft on August 17, 2006, 05:02:00 am
user posted image
That kind of four way scrolling? I made this for crzyrbl for Zelda, and I think him and CDI both made some pretty good innovations with it... With xLIB guru is the plan to start simple, and then when it gets harder use more advanced routines? Like start with this one, and then the further we progress, we go back to this, and add a hud and better integrate it?
Title: Xlib Guru
Post by: Dragon__lance on August 17, 2006, 06:03:00 am
i remember that demo you released, i still have it! I'll have to add the routine to xlib guru. And yes, i guess that's the plan with xlib guru. I just added the first part of the tutorial i wrote, i'll add the rest sometime soon :)smile.gif
Title: Xlib Guru
Post by: Halifax on August 17, 2006, 02:27:00 pm
@Cure777:This is the four way scrolling code in library form
Variable C equals first matrix to start scrolling from and D is the matrix to scroll to. The syntax is below and it will scroll from matrix A to B going up.

->C:1->D
1:prgmSCROLL
c1-->
CODE
ec1
If Ans=1:Then
Title: Xlib Guru
Post by: Dragon__lance on August 17, 2006, 03:30:00 pm
nice, we'll have to add either your or merthsoft's version to xlib guru, do you think you'll be able to make a small demo of scrolling?

btw,you can save some space in your code, by removing all the "real(6", and just update lcd at the end of tilemap ;)wink.gif
Title: Xlib Guru
Post by: Halifax on August 18, 2006, 08:38:00 am
yea lol and yes what do you want like an animated screenshot
Title: Xlib Guru
Post by: Demon on August 19, 2006, 06:35:00 pm
http://xlib.revsoft.org/index.php?title=Tutorial - I've edited up to the Sprite Command, backing up the previous entries.  Hopefully this will help explain things in more detail.
Title: Xlib Guru
Post by: DJ Omnimaga on August 20, 2006, 02:06:00 am
oooh cool, more details now :Dbiggrin.gif, I still gotta ask tr1p if I can add the original readme to the wiki too :)smile.gif
Title: Xlib Guru
Post by: ninja_master on September 07, 2006, 10:40:00 am
I'll make a greyscale tutorial.  With sprites, pics and moving greyscale sprites.  Oh, and the technique to make good greyscale pics.
Title: Xlib Guru
Post by: Spellshaper on September 07, 2006, 11:03:00 am
QuoteBegin-ninja_master+7 Sep, 2006, 23:4-->
QUOTE (ninja_master @ 7 Sep, 2006, 23:40)
I'll make a greyscale tutorial.  With sprites, pics and moving greyscale sprites.  Oh, and the technique to make good greyscale pics.  

 O_____O

Wow. If you manage to pull that off, I'll drool all over my TI screen. Seriously. And: Welcome to the forums! *Spellshaper
Title: Xlib Guru
Post by: tenniskid493 on September 07, 2006, 01:24:00 pm
@xlibman: awardspace allows php and sql without any ads...you could check that out for hosting.
Title: Xlib Guru
Post by: bfr on September 07, 2006, 02:14:00 pm
QuoteBegin-ninja_master+7 Sep, 2006, 16:4-->
QUOTE (ninja_master @ 7 Sep, 2006, 16:40)
I'll make a greyscale tutorial.  With sprites, pics and moving greyscale sprites.  Oh, and the technique to make good greyscale pics.  

 It would be great if you do that.

Also, like Spelli said, welcome to the forums.   :gift:party3.gif
Title: Xlib Guru
Post by: DJ Omnimaga on September 08, 2006, 01:50:00 am
hmm tenniskid you're a bit late for this as I found webspace several weeks ago :Ptongue.gif

as for ninja master, welcome to the forums, I can't wait to see your tutorial :)smile.gif. will it be in complement to CDI's 4 level grayscale tutorial or a separate tutorial?
Title: Xlib Guru
Post by: Halifax on November 02, 2006, 07:27:00 am
Has there been any recent progress on Xlib guru lately?? cause if you need a tutorial written just tell me
Title: Xlib Guru
Post by: Demon on November 02, 2006, 11:34:00 am
I still have the Logic section still half-finished on my comp :Ptongue.gif
Title: Xlib Guru
Post by: Halifax on November 03, 2006, 09:58:00 am
O I thought it was done because on Xlib guru's site it is done mayb I misuderstood what you just said
Title: Xlib Guru
Post by: Radical Pi on November 03, 2006, 10:35:00 am
I've been wondering since I first saw this topic if its alive. Any pages I can do to help?
Title: Xlib Guru
Post by: Halifax on November 03, 2006, 11:22:00 am
Yes this project doesn't seem that much alive
Title: Xlib Guru
Post by: Radical Pi on November 03, 2006, 11:49:00 am
Well no one ever documented bluescale, I'll write a tutorial on that I guess.

If you didn't know, it was found that SAFE blue was possible on the 84+(SE) by looping real(5,0,0 and real(5,0,39 because the highest contrast turned out to be a dark blue. Combining this with random mixtures on the graphscreen provides hours of fun (seriously, this is a very amusing hack).
Title: Xlib Guru
Post by: DJ Omnimaga on November 09, 2006, 03:14:00 am
yeah not much activity here :(sad.gif but since its a wiki it cannot really die, as anyone can add info anytime in it
Title: Xlib Guru
Post by: necro on November 27, 2006, 08:20:00 am
could somebody add this section:
QUOTE

Xlib Detection

If someone does not have xlib installed, or the wrong version, it may be difficult to alert them to this.
Title: Xlib Guru
Post by: DJ Omnimaga on November 28, 2006, 02:40:00 am
welll anyone can add things to the wiki, even yourself ^.^


thats nice tho
Title: Xlib Guru
Post by: necro on November 28, 2006, 03:33:00 am
don't want join it...joined to many things so I'd just like some one to add it in.
Title: Xlib Guru
Post by: DJ Omnimaga on November 28, 2006, 03:43:00 am
ok lol x.x well u dont need to stay in it if you join, and even then i think Guests can also add stuff, if i remember. I guess I'll wait until someone add it then x.x
Title: Xlib Guru
Post by: Radical Pi on November 28, 2006, 08:57:00 am
Expect me to write something for it. Don't expect it to be helpful or make sense though.
Title: Xlib Guru
Post by: necro on November 28, 2006, 12:59:00 pm
added a bit to it...I'll add some more sometime
Title: Xlib Guru
Post by: DJ Omnimaga on November 29, 2006, 02:37:00 am
I have this code in SMSD and Metroid i believe. pretty helpful, at least i don't have as much people asking me why they get err:argument
Title: Xlib Guru
Post by: necro on November 29, 2006, 10:49:00 am
So...um, anybody gona put anything in it?  I posted that trick but...itd be nice to see some more progress.
Title: Xlib Guru
Post by: DJ Omnimaga on November 29, 2006, 01:38:00 pm
well maybe if i get time I'll do it, it was mostly dragon__lance who was in charge of xlib guru, but he left :(sad.gif
Title: Xlib Guru
Post by: necro on December 03, 2006, 06:44:00 pm
still, people can't put stuff in it?..its a wiki for sheba's sake.  At least can we get people to post a rough idea of things they'd like help with or want to explain?  %)rolleyes2.gif:lmao:ptdr.gif-.-blah.gif:Oo:fou2.gif:paf:tripaf.gif
Title: Xlib Guru
Post by: DJ Omnimaga on December 04, 2006, 03:23:00 am
Dude calm down, and if you really want it to be added (which I think someone did), just add it yourself, its not that hard to go in the wiki as guest and click EDIT above the page or stuff like this, everyone can do it
Title: Xlib Guru
Post by: necro on December 04, 2006, 05:36:00 am
I am calm (always)...perhaps the sarcasm didn't get convied very well.  Better?
Title: Xlib Guru
Post by: DJ Omnimaga on December 04, 2006, 06:14:00 am
it seemed kinda rude, more like you were blaming omnimaga ppl for not contributing and making them feel bad :/confused.gif, its their own decision what they work on
Title: Xlib Guru
Post by: necro on December 14, 2006, 06:49:00 pm
that was far from my intent, and to those who might so have read it so, appologies I offer.  Is there any topics anyone would like to have added?
Title: Xlib Guru
Post by: DJ Omnimaga on December 15, 2006, 02:41:00 am
apologie accepted. As for new topic later I wonder if small tutorial to startup with game engines would be cool, like right now we have tilemaps, but maybe other stuff like an how to make a tic tac toe game or stuff like this.


Oh and most importantly get rid of those casino links posted by spambots