All my questions are here.. ;o)
Moderator: Moderators
-
lord
a question
im trying making a PHP script in order to decode pattern tables. and show characters in a 8x8 table of colors in html. yes i can decode .chrs manually then i fully understand that..
My question is: what instruction in php help to me to read a "binary file"??. and how can i reading a "16 byte" (8x8) pixels???.. i wanna to know only how read... because i know the another stuff
..
My question is: what instruction in php help to me to read a "binary file"??. and how can i reading a "16 byte" (8x8) pixels???.. i wanna to know only how read... because i know the another stuff
- lord_Chile
- Posts: 120
- Joined: Thu Feb 02, 2006 7:07 am
- Location: Chile (South America), Quilpué
- Contact:
another question about "the latch"
And another question.. i haver read here about something called "the latch", what is it?.. how important it is?? when set it?? 0, or to 1???
ps: There are girls on nesdev?? do you know anyone???
hahaahaha..
god luck
ps: There are girls on nesdev?? do you know anyone???
god luck
Good day to nesdev people. Lord..
Author of nothing =P
UTFSM Sansano programmer.. lord_Chile
Saludos a la Sede JMC de la UTFSM... Viña del Mar, CHILE
Author of nothing =P
UTFSM Sansano programmer.. lord_Chile
Saludos a la Sede JMC de la UTFSM... Viña del Mar, CHILE
- lynxsolaris
- Posts: 143
- Joined: Tue Jan 17, 2006 10:39 am
- Location: North Carolina
Re: another question about "the latch"
Check this out:lord_Chile wrote:And another question.. i haver read here about something called "the latch", what is it?.. how important it is?? when set it?? 0, or to 1???
ps: There are girls on nesdev?? do you know anyone???
![]()
hahaahaha..
god luck
http://nesdev.com/bbs/viewtopic.php?t=1 ... h&start=15
I had the same question.
EDIT: About latch .. not girls on nesdev.
- lynxsolaris
- Posts: 143
- Joined: Tue Jan 17, 2006 10:39 am
- Location: North Carolina
Re: a question
lord wrote:im trying making a PHP script in order to decode pattern tables. and show characters in a 8x8 table of colors in html. yes i can decode .chrs manually then i fully understand that..
My question is: what instruction in php help to me to read a "binary file"??. and how can i reading a "16 byte" (8x8) pixels???.. i wanna to know only how read... because i know the another stuff..
use fread:
http://us2.php.net/manual/en/function.fread.php
EDIT: nevermind ... see you already have that.
-
_tokumaru_
You seem to be reading the data just fine... just don't expect it to come arranged as hexadecimal numbers or even as bits...
Just convert each character from the string into values... each character is a byte. I don't know how to do it in php though, I only know asp, but surelly there must be a function for that.
Just convert each character from the string into values... each character is a byte. I don't know how to do it in php though, I only know asp, but surelly there must be a function for that.
- lord_Chile
- Posts: 120
- Joined: Thu Feb 02, 2006 7:07 am
- Location: Chile (South America), Quilpué
- Contact:
yes!, i am getting work it
only any little stuff remain me.. i dont know good working with matrix in php!!!.. then my program lost the "1"s and "0s" in matrix..
but 1st bpp (first 8 bytes are showed good),.. im still working...
i can get 0s and 1s representation of file!..
working...
thanks
but 1st bpp (first 8 bytes are showed good),.. im still working...
i can get 0s and 1s representation of file!..
working...
thanks
Good day to nesdev people. Lord..
Author of nothing =P
UTFSM Sansano programmer.. lord_Chile
Saludos a la Sede JMC de la UTFSM... Viña del Mar, CHILE
Author of nothing =P
UTFSM Sansano programmer.. lord_Chile
Saludos a la Sede JMC de la UTFSM... Viña del Mar, CHILE
- lord_Chile
- Posts: 120
- Joined: Thu Feb 02, 2006 7:07 am
- Location: Chile (South America), Quilpué
- Contact:
yessssssssssss!
just now i read web design using php4!!.. and i read parameters by reference.. i was very stupid because, i was replacing my matrix each time then matrix didnt load completely.. but know.. i have 0.1 stable version of code hehehe.. full art.. it's currently only a test, but it seem good!
Good day to nesdev people. Lord..
Author of nothing =P
UTFSM Sansano programmer.. lord_Chile
Saludos a la Sede JMC de la UTFSM... Viña del Mar, CHILE
Author of nothing =P
UTFSM Sansano programmer.. lord_Chile
Saludos a la Sede JMC de la UTFSM... Viña del Mar, CHILE
- lord_Chile
- Posts: 120
- Joined: Thu Feb 02, 2006 7:07 am
- Location: Chile (South America), Quilpué
- Contact:
see it!, a output of my php script
In my university named "Universidad tecnica federico santa maria" from Chile exist a page for students of this university.. I think that people loving programming can subscribe here clicking on "crear cuenta" (create account).. but this page is in spagnol..
i post the output of my program here, currently it draw sprite number 1 (i give spritenumber 1 like parameter) and it was read of smb.chr!!. link called "next" is BAD because now i dont have a server then i send only output to this page... opinions.. i am starting to making more funtionality to it, because it can show any chr without compression.. put your attention on 1s and 0s, because it's real, and was ripped directly from bytes by bytes..
IT'S THE URL!!!
http://www.inf.jmc.utfsm.cl/contenidos ... 0210135535
good luck
ps: memblers sorry, width of this post is very large...
but url of my university is so large!.
i post the output of my program here, currently it draw sprite number 1 (i give spritenumber 1 like parameter) and it was read of smb.chr!!. link called "next" is BAD because now i dont have a server then i send only output to this page... opinions.. i am starting to making more funtionality to it, because it can show any chr without compression.. put your attention on 1s and 0s, because it's real, and was ripped directly from bytes by bytes..
IT'S THE URL!!!
http://www.inf.jmc.utfsm.cl/contenidos ... 0210135535
good luck
ps: memblers sorry, width of this post is very large...
but url of my university is so large!.
Good day to nesdev people. Lord..
Author of nothing =P
UTFSM Sansano programmer.. lord_Chile
Saludos a la Sede JMC de la UTFSM... Viña del Mar, CHILE
Author of nothing =P
UTFSM Sansano programmer.. lord_Chile
Saludos a la Sede JMC de la UTFSM... Viña del Mar, CHILE
-
lord
My crazy idea
yeah, im making a decoder of nametables and patterntables.. i use rocknes's emu and i export nametable of super mario bros 1. i get .chr and reading .nam file in binary mode i draw to great scale background of smb1 using a php script with a output in html tables!!!.. my another decoder in php is for really good sprites to scale, too.. i have smb, toadstool, koopa hehe.. it's really slow.. it takes 20 minutes on draw.. how can i improve my code???..
but i have any questions... .nam file is 4 kb.... for what??.. when i read documents they give to me understand that nes has space for only two nametables, this space is 2kb.. for what???.. then each nametable is 1kb??? or is space of 2kb for each nametable???.. then when rocknes exports nametables it's exporting 2 nametables????? (4 kb??)..
another question: i read nametable for 32 bytes * 30 bytes.. yeah.. and where are attribute tables???.. i know that it's inside .nam.. but where?? how many bytes???
but i have any questions... .nam file is 4 kb.... for what??.. when i read documents they give to me understand that nes has space for only two nametables, this space is 2kb.. for what???.. then each nametable is 1kb??? or is space of 2kb for each nametable???.. then when rocknes exports nametables it's exporting 2 nametables????? (4 kb??)..
another question: i read nametable for 32 bytes * 30 bytes.. yeah.. and where are attribute tables???.. i know that it's inside .nam.. but where?? how many bytes???