Author Topic: N64 Development Tools  (Read 31045 times)

0 Members and 1 Guest are viewing this topic.

Offline Conle

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2203
Re: N64 Development Tools
« Reply #15 on: January 26, 2010, 03:10:04 AM »

Linux won yet another fight 8)

Offline the|Gamer

  • Jr. Member
  • **
  • Posts: 67
Re: N64 Development Tools
« Reply #16 on: January 26, 2010, 03:44:29 AM »
BTW what do you think is Linux on the N64 possible :D
I mean text based?

Offline Conle

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2203
Re: N64 Development Tools
« Reply #17 on: January 27, 2010, 03:13:11 PM »
BTW what do you think is Linux on the N64 possible :D
I mean text based?


Yes it is possible.
Also with graphics its possible with ram expansion even if the n64 has
unified memory architecture.
There are some techniques to make textures smaller in size when you upload them to the video ram.I think its called "pixel swizzling".
So yes, with "pixel swizzling" & conversion to 8bit textures you can have a lot of room for a full port with graphics.

But better wait for ChillyWilly's reply if you want more accurate answer.
 ::sm-29.gif::
« Last Edit: January 27, 2010, 03:14:51 PM by Conle »

Offline ChillyWilly

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1751
  • Just a coding machine.
Re: N64 Development Tools
« Reply #18 on: January 29, 2010, 01:59:09 AM »
I seem to remember a site on trying to get linux running on the N64. Didn't look into that too much as I'm more concerned with the menu right now. Given the memory constraints of the N64, linux might not be a good choice. Something more memory efficient like AROS might be better. If you really want linux, you could probably get a 2.2 kernel running on it. Once there's SD card support for the N64 Myth, that might be a good time to experiment with it.

Offline sanni

  • Moderator
  • Hero Member
  • *****
  • Posts: 502
Re: N64 Development Tools
« Reply #19 on: March 29, 2010, 07:55:43 PM »
I've found a book called "The C Programming Language Second Edition", it seems to be ok.
First thing to do is:
Code: [Select]
#include <studio.h>
main()
{
printf("hello, world\n");
}

I also downloaded xubuntu-9.04 and installed it on VMWare. Then I placed your toolchain in my Home directory and typed the envvars into the commandline.
I saved above code to hello.c and typed: gcc hello.c
It made a file called a.out which I can run in the commandline via ./a.out

It doesn't run on my N64. I have to somehow convert it to a rom that has a header and so on.  ~sm-64.gif~.gif
Does anybody know how to do this?

Offline the|Gamer

  • Jr. Member
  • **
  • Posts: 67
Re: N64 Development Tools
« Reply #20 on: March 29, 2010, 08:08:25 PM »

Offline Conle

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2203
Re: N64 Development Tools
« Reply #21 on: March 29, 2010, 08:45:20 PM »
I've found a book called "The C Programming Language Second Edition", it seems to be ok.
First thing to do is:
Code: [Select]
#include <studio.h>
main()
{
printf("hello, world\n");
}

I also downloaded xubuntu-9.04 and installed it on VMWare. Then I placed your toolchain in my Home directory and typed the envvars into the commandline.
I saved above code to hello.c and typed: gcc hello.c
It made a file called a.out which I can run in the commandline via ./a.out

It doesn't run on my N64. I have to somehow convert it to a rom that has a header and so on.  ~sm-64.gif~.gif
Does anybody know how to do this?


This will not work on other platform but PC.

To use this with n64 you must use the N64 sdk , initialize the HW , then initialize the video & load up the font , then you can print some text.
Also you need a proper loop otherwise your app will exit before you can see anything  ~sm-67.gif~.gif

Offline sanni

  • Moderator
  • Hero Member
  • *****
  • Posts: 502
Re: N64 Development Tools
« Reply #22 on: April 05, 2010, 07:36:59 AM »
I'm happy  ::sm-18.gif::



I found everything I needed in the test.v64 demo app for libdragon::sm-22.gif::

Offline ChillyWilly

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1751
  • Just a coding machine.
Re: N64 Development Tools
« Reply #23 on: April 05, 2010, 07:49:40 AM »
Nice find! Now we have a couple of different devkits to work from.  ~sm-76.gif~.gif

Offline ChillyWilly

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1751
  • Just a coding machine.
Re: N64 Development Tools
« Reply #24 on: April 28, 2010, 12:25:23 PM »
I found everything I needed in the test.v64 demo app for libdragon::sm-22.gif::

You should have mentioned the changes needed to make this devkit work. The libs are compiled at the wrong optimization level, the mkdfs tool doesn't work on PCs due to endian issues, and the examples use the wrong address for the embedded dfs file.

Here's a properly altered version that actually works.
libdragon-src-20100427.zip
libdragon-20100427.7z

So now I have two devkits - hkz's libn64 (in the opening post), and libdragon.  8)

Offline Conle

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2203
Re: N64 Development Tools
« Reply #25 on: April 28, 2010, 07:06:53 PM »
Excellent!!  :D  ;D

Offline sanni

  • Moderator
  • Hero Member
  • *****
  • Posts: 502
Re: N64 Development Tools
« Reply #26 on: April 29, 2010, 03:52:25 AM »
 :-\, thats why I can't get the code samples to run on my N64.
I tried 3 different linuxes(ubuntu/xubuntu/mint) and also different versions of the libtools and gcc but couldn't get the filesystem to work, I though I messed up the compiling. Also wrote a email to the author but he never replied.

So thank you very much  :-* :-*
Now I will try to add an image to my allmighty hello world program  ~sm-59.gif~.gif  ~sm-79.gif~.gif

Offline ChillyWilly

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1751
  • Just a coding machine.
Re: N64 Development Tools
« Reply #27 on: April 29, 2010, 05:07:22 AM »
Try the test proggy in the examples drawer and make sure it works. Then look at it as it shows how to make/use the dfs files.

Offline sanni

  • Moderator
  • Hero Member
  • *****
  • Posts: 502
Re: N64 Development Tools
« Reply #28 on: May 02, 2010, 07:48:52 AM »
I've made you a game  ~sm-79.gif~.gif

You are a penguin and have to eat melons to gain energy, walking around will burn fat so you lose energy, if your energy drops below zero you're game over.

Controls:
DPAD - move
A Button - eat melons

Has more bugs than levels though  ~sm-66.gif~.gif

Edit:

Updated it  ~sm-57.gif~.gif
Now it has a Titlescreen and after you are Gameover you can restart without resetting the N64 and you also get more life depending how many times you died.
It has about 100 random levels.
Everytime you die and continue you will get a new set of 100 random levels, if you just reset the N64 nothing will change though.
So if you want you can always play the same 100 levels over on over.
Also you have now 1-9 melons to eat pro level.

Bugs:
- The "collision detection" sucks that bad that sometimes you will eat allmost all melons on the screen at once.
« Last Edit: May 03, 2010, 03:57:45 AM by sanni »

Offline ChillyWilly

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1751
  • Just a coding machine.
Re: N64 Development Tools
« Reply #29 on: May 02, 2010, 08:45:26 AM »
Pretty slick, but you need a better random... the melon always appears in the same places from one game to the next.