Frozen Utopia Forum
Welcome,
Guest
. Please
login
or
register
.
January 28, 2012, 01:45:31 AM
1 Hour
1 Day
1 Week
1 Month
Forever
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
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
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
Gender:
Posts: 1785
Master Of The Black Arts
A Crash-Course In HuC
«
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.
Logged
Keranu
Frozen Utopia Member
Ruler Of The Cold
Karma: +7/-0
Offline
Gender:
Posts: 1527
Re: A Crash-Course In HuC
«
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.
Logged
LaZer Dorks
Nodtveidt
Soul Of Ice
Frozen Utopia Member (A)
Ruler Of The Cold
Karma: +5/-0
Offline
Gender:
Posts: 1785
Master Of The Black Arts
Re: A Crash-Course In HuC
«
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
Gender:
Posts: 1527
Re: A Crash-Course In HuC
«
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
.
Logged
LaZer Dorks
Nodtveidt
Soul Of Ice
Frozen Utopia Member (A)
Ruler Of The Cold
Karma: +5/-0
Offline
Gender:
Posts: 1785
Master Of The Black Arts
Re: A Crash-Course In HuC
«
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
Gender:
Posts: 1527
Re: A Crash-Course In HuC
«
Reply #5 on:
December 28, 2005, 01:03:26 AM »
Hehe, I thought you would ask
.
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
LaZer Dorks
Nodtveidt
Soul Of Ice
Frozen Utopia Member (A)
Ruler Of The Cold
Karma: +5/-0
Offline
Gender:
Posts: 1785
Master Of The Black Arts
Re: A Crash-Course In HuC
«
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.
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.
Logged
Keranu
Frozen Utopia Member
Ruler Of The Cold
Karma: +7/-0
Offline
Gender:
Posts: 1527
Re: A Crash-Course In HuC
«
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
LaZer Dorks
DeveloperX
Guest
Re: A Crash-Course In HuC
«
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
Gender:
Posts: 1785
Master Of The Black Arts
Re: A Crash-Course In HuC
«
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
Re: A Crash-Course In HuC
«
Reply #10 on:
October 10, 2007, 11:35:32 AM »
Oh, btw... the links are dead again Nod.
Logged
WhoNeedszzz
Guest
Re: A Crash-Course In HuC
«
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.
Logged
DeveloperX
Guest
Re: A Crash-Course In HuC
«
Reply #12 on:
October 12, 2007, 12:30:09 AM »
Quote from: WhoNeedszzz 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.
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
Gender:
Posts: 10
Re: A Crash-Course In HuC
«
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
Gender:
Posts: 1785
Master Of The Black Arts
Re: A Crash-Course In HuC
«
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.
Logged
Pages:
[
1
]
2
Frozen Utopia Forum
|
For Developers
|
Programming Techniques
| Topic:
A Crash-Course In HuC
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Forums
-----------------------------
=> Announcements
-----------------------------
For Players
-----------------------------
=> Jibber Jabber
=> Announcements
=> Game Help
=> Suggestions
-----------------------------
For Developers
-----------------------------
=> Demo and Screenshot Showcase
=> Programming Techniques
=> Graphics Development
=> Music And Sound
=> General Development
Loading...