Frozen Utopia Forum
Welcome, Guest. Please login or register.
January 28, 2012, 01:45:31 AM

Login with username, password and session length
Search:     Advanced search
Mysterious Song is in queue for manufacturing.
9150 Posts in 628 Topics by 69 Members
Latest Member: RegalSin
* Home Help Search Calendar Login Register
Frozen Utopia Forum  |  For Developers  |  Programming Techniques  |  Topic: A Crash-Course In HuC 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Go Down Print
Author Topic: A Crash-Course In HuC  (Read 5236 times)
Nodtveidt
Soul Of Ice
Frozen Utopia Member (A)
Ruler Of The Cold
*******

Karma: +5/-0
Offline Offline

Gender: Male
Posts: 1785


Master Of The Black Arts


View Profile
« on: December 17, 2005, 01:33:45 PM »

As part of the large HuC documentation project I took up awhile back, i decided to create a little crash-course in coding the C subset we have in HuC. It's my aim to eventually have an entire course that an absolute beginner with no programming experience whatsoever can pick up and basically learn in a very short amount of time. It covers both working alone and working with my upcoming development suite, HuiCide. Anyways, I have completed the very first lesson of the course, you can view it here:

http://hucdoc.nodtveidt.net/course01.html

If you have no experience and you can understand how the resulting program works in a nutshell, then my plan is thus far successful. Cheesy
Logged

Keranu
Frozen Utopia Member
Ruler Of The Cold
*******

Karma: +7/-0
Offline Offline

Gender: Male
Posts: 1527



View Profile WWW
« Reply #1 on: December 17, 2005, 11:31:45 PM »

Thanks man! I'll be sure to try this out when I have some free time! I have tried programming before and have only made VERY little progress in it, and I have done this many times in the past but I loose interests after a week and once I try again, I forget everything from the beginning and have to start over again. I'll let you know how well I did with it when I get the chance. Cheesy
Logged

Nodtveidt
Soul Of Ice
Frozen Utopia Member (A)
Ruler Of The Cold
*******

Karma: +5/-0
Offline Offline

Gender: Male
Posts: 1785


Master Of The Black Arts


View Profile
« Reply #2 on: December 25, 2005, 03:19:07 AM »

The second lesson of the course is now online:

http://hucdoc.nodtveidt.net/course02.html

It covers using variables, some basic maths, and another standard library function, put_number.
Logged

Keranu
Frozen Utopia Member
Ruler Of The Cold
*******

Karma: +7/-0
Offline Offline

Gender: Male
Posts: 1527



View Profile WWW
« Reply #3 on: December 26, 2005, 12:19:05 AM »

I'll try it out when I get the chance, but I also need a compiler working. I can't get HuC to load, or I'm not even sure how to load it  Huh.
Logged

Nodtveidt
Soul Of Ice
Frozen Utopia Member (A)
Ruler Of The Cold
*******

Karma: +5/-0
Offline Offline

Gender: Male
Posts: 1785


Master Of The Black Arts


View Profile
« Reply #4 on: December 26, 2005, 01:56:05 AM »

Define "load".
Logged

Keranu
Frozen Utopia Member
Ruler Of The Cold
*******

Karma: +7/-0
Offline Offline

Gender: Male
Posts: 1527



View Profile WWW
« Reply #5 on: December 28, 2005, 01:03:26 AM »

Hehe, I thought you would ask  Grin .

I am going to post strictly off memory, I can't access the HuC folders right now. I open up the HuC folder and click some folder that has three different programs I believe, and one of them is HuC.exe. I click on it and the DOS window opens and quickly closes. I tried loading it straight from DOS so it might still up longer and I believe it gave me some kind of message, but I don't really remember. It seems like I could have downloaded the wrong thing.
Logged

Nodtveidt
Soul Of Ice
Frozen Utopia Member (A)
Ruler Of The Cold
*******

Karma: +5/-0
Offline Offline

Gender: Male
Posts: 1785


Master Of The Black Arts


View Profile
« Reply #6 on: December 28, 2005, 03:55:39 AM »

That's because huc.exe is a compiler, not an environment. You don't "load it", you write your program and then use the compiler to compile it. The reason it opens the console window and then quickly closes it is because you're not giving it anything to work with when you just doubleclick it from Explorer. Cheesy

I'm covering all of this in the introduction to the course, but I haven't gotten that far yet. Maybe I'll finish that part up today. Smiley
Logged

Keranu
Frozen Utopia Member
Ruler Of The Cold
*******

Karma: +7/-0
Offline Offline

Gender: Male
Posts: 1527



View Profile WWW
« Reply #7 on: December 29, 2005, 03:54:44 PM »

Ohh, gotcha, I thought it was something like that. I'll mess with it again later and post about it.
Logged

DeveloperX
Guest
« Reply #8 on: August 15, 2006, 09:01:42 PM »

course links are dead now......... I think nodtveidt.net is offline now?
Logged
Nodtveidt
Soul Of Ice
Frozen Utopia Member (A)
Ruler Of The Cold
*******

Karma: +5/-0
Offline Offline

Gender: Male
Posts: 1785


Master Of The Black Arts


View Profile
« Reply #9 on: August 16, 2006, 03:19:20 AM »

Nah, I simply forgot to put the subdomain up when I moved the server. It's back up now.
Logged

DeveloperX
Guest
« Reply #10 on: October 10, 2007, 11:35:32 AM »

Oh, btw... the links are dead again Nod. Grin
Logged
WhoNeedszzz
Guest
« Reply #11 on: October 11, 2007, 07:57:40 PM »

Indeed, the links are dead. And I would like to learn! I am learning python currently but any other languages that aren't retarded is fine by me to learn.  Grin
Logged
DeveloperX
Guest
« Reply #12 on: October 12, 2007, 12:30:09 AM »

Indeed, the links are dead. And I would like to learn! I am learning python currently but any other languages that aren't retarded is fine by me to learn.  Grin
The C code that HuC can compile is similar to C.
I can send you some example sources. Just hit me up on IRC about it.
Logged
Arkhan
Ball Of Snow
*

Karma: +0/-0
Offline Offline

Gender: Male
Posts: 10



View Profile WWW
« Reply #13 on: August 10, 2008, 10:38:13 PM »

In the first lesson, when you call set_color_rgb(1,7,7,7)....

lets say I did #incpal(sprPal,"PICTURE.PCX")


when that set_color_rgb() is called, is it modifying color #1 of my recently included sprPal, or an entirely different pallet?

^_^    These tutorials are pretty solid! FEED ME MOAR TUTORIALS!!!!!!

Logged
Nodtveidt
Soul Of Ice
Frozen Utopia Member (A)
Ruler Of The Cold
*******

Karma: +5/-0
Offline Offline

Gender: Male
Posts: 1785


Master Of The Black Arts


View Profile
« Reply #14 on: August 13, 2008, 10:16:42 PM »

set_color_rgb() affects the hardware palette, not your palette data (sprPal in this case). So sprPal itself isn't affected.

If I get a chance, I'll crank out some more tutorials. Cheesy
Logged

Pages: [1] 2 Go Up Print 
Frozen Utopia Forum  |  For Developers  |  Programming Techniques  |  Topic: A Crash-Course In HuC « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.172 seconds with 20 queries.