Banner
Views: 852,411,160
Time:
31 users online: 7 up, Akaginite, AnasMario130, AnEvilGhost,  Anorakun,  Atari2.0, chickaDEE Magazine, Counterfeit, Doopu,  E-man38, Green Jerry, HamOfJustice, Heraga,  idol, JabuJabule,  JamesD28,  Katerpie,  KevinM, Kusrry, LucasMegaStriker,  MarioFanGamer,  MiniMawile303, NewPointless, OrangeBronzeDaisy, PedroHrodrigues, TCgamerboy2002, Thiago678, VecchiaZim, WhiteYoshiEgg, Yoshi Master, Zandro - Guests: 60 - Bots: 113 Users: 47,001 (2,529 active)
Latest: GunRat
Tip: When making your overworld, mix the terrain up! Angled land and multiple colors looks much more interesting than square land and plain colors.Not logged in.
Posts by Pseudonym
Pseudonym's Profile - Posts by Pseudonym
Pages: « 1 218 19 20 21 »
Pause Screen Thingy
I remember a while ago there were a couple people creating pause screens in the ASM showoff thread, so I created a half decent poorly coded pause screen. The I sorta abandoned it, and the n I come back and see Roy's mega useful stripe image thread, and I decide to update it into it's current form (it can now exit to the overworld):
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/MsrELvFEAOc&hl=en_US&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/MsrELvFEAOc&hl=en_US&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
Download: Here

BRK/COP Hook
LI got the Idea from #serioushax when I found out about Interrupt vectors, and with the help of them, I built this. The version is the same as the version shown earlier in this youtube video:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/CoNwE-5otbs&hl=en_US&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/CoNwE-5otbs&hl=en_US&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
Download: here
COP Download: here

Endure Patch
This is a cool little patch inspired by Pokemon (do not ask why). It lets you kill off enemys by pressing the up button (doesn't work on chucks though...). If you kill 3 enemies, an earthquake occurs. if you get less than 3, the counter resets. You can also make it hurt mario when he has less than 3 by changing
Code
LDA $15
AND #$08
BNE skip
LDA $0667
BEQ skip
STZ $0667
skip:

to
Code
LDA $15
AND #$08
BNE skip
LDA $0667
BEQ skip
STZ $0667
JML $00F5C1
skip:

<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/pr3j8zQv5-8&hl=en_US&fs=1&rel=0&color1=0x2b405b&color2=0x6b8ab6"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/pr3j8zQv5-8&hl=en_US&fs=1&rel=0&color1=0x2b405b&color2=0x6b8ab6" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
download: here


--------------------
*WARNING: due to cosmic radiation, Quantum fluctuations, or earth going into sector x79352C, the world may end at any moment. Have a nice day.

Current Project:



Status:Complete

Previous project status: Failed/Quit

Current Issue

C++ : fsteam help



BRK hook is meant not only for the Quake, but to be able to associate BRK with many common ASM functions.

--------------------
*WARNING: due to cosmic radiation, Quantum fluctuations, or earth going into sector x79352C, the world may end at any moment. Have a nice day.

Current Project:



Status:Complete

Previous project status: Failed/Quit

Current Issue

C++ : fsteam help



there is one problem (a big one) with it at the moment. It CANNOT jump anywhere in Bank 00. No idea why though.

--------------------
*WARNING: due to cosmic radiation, Quantum fluctuations, or earth going into sector x79352C, the world may end at any moment. Have a nice day.

Current Project:



Status:Complete

Previous project status: Failed/Quit

Current Issue

C++ : fsteam help



Added the "Endure Patch". If I'm lucky with time (and youtube) I can get one more thing uploaded...

--------------------
*WARNING: due to cosmic radiation, Quantum fluctuations, or earth going into sector x79352C, the world may end at any moment. Have a nice day.

Current Project:



Status:Complete

Previous project status: Failed/Quit

Current Issue

C++ : fsteam help



Originally posted by Me
BRK hook is meant not only for the Quake, but to be able to associate BRK with many common ASM functions.



Edit:*THREAD NOW HAS 90% more COP*

--------------------
*WARNING: due to cosmic radiation, Quantum fluctuations, or earth going into sector x79352C, the world may end at any moment. Have a nice day.

Current Project:



Status:Complete

Previous project status: Failed/Quit

Current Issue

C++ : fsteam help



This is just epic. I loved Tale Of Elementia, but wow. I always loved plot driven games too, so this is a must play. no complaints.

--------------------
*WARNING: due to cosmic radiation, Quantum fluctuations, or earth going into sector x79352C, the world may end at any moment. Have a nice day.

Current Project:



Status:Complete

Previous project status: Failed/Quit

Current Issue

C++ : fsteam help



0.o
this is OWNAGE
this is so win that it better work in Wine. If not... Grrrr!

--------------------
*WARNING: due to cosmic radiation, Quantum fluctuations, or earth going into sector x79352C, the world may end at any moment. Have a nice day.

Current Project:



Status:Complete

Previous project status: Failed/Quit

Current Issue

C++ : fsteam help



2nd C3. I attended the very 1st and this one. This timme I feel I did tons better. I actually got some non-last minute stuff in. ( I could also get an award for most useless submissions!)
O.O

--------------------
*WARNING: due to cosmic radiation, Quantum fluctuations, or earth going into sector x79352C, the world may end at any moment. Have a nice day.

Current Project:



Status:Complete

Previous project status: Failed/Quit

Current Issue

C++ : fsteam help



24.32 and 8,000,927,981

Story:
once upon a time, Bowser felt like mario was cheating in their endless game of destroying each other and miaculously surviving, so he went to the Mushroom kingdom to find his cheating device. Unfortunately, mario was using a homebrew timemachine to teleport to the future, which turned out to be during the Cold War. Bowser soon found what he had always wanted, a Nuclear Bomb, while mario was stealing random CIA brainwashing devices. Soon enough, they began a war, with Bowser winning. Bowser, feeling smart, marched into area 51, just when Mario was ambushing him. 1 nuke landed right by a big red button, which shot an expresso into a glass wall, releasing a alien spaceship. The aliens used their mind control powers to force Luigi, who was hiding inside a crate of fake crystal skulls, to make the space ship release them. after spending their time imprisoned reading The War of the Worlds, they were ready to wag an intergalactic space war. The crystal skulls, which went flying after lujigi jumped out, reflected a beam of light onto Mario's time machine, which teleported the aliens to the time of the dinosaurs and making the aliens lasers hit Bowser's last nuke, destroying the dinosaurs and removing Mario, Luigi, Bowser, Aliens, and timemachines from the timespace continuium before India Jones could battle them with King Kong.

--------------------
*WARNING: due to cosmic radiation, Quantum fluctuations, or earth going into sector x79352C, the world may end at any moment. Have a nice day.

Current Project:



Status:Complete

Previous project status: Failed/Quit

Current Issue

C++ : fsteam help



Most likely to lose this category. :P

--------------------
*WARNING: due to cosmic radiation, Quantum fluctuations, or earth going into sector x79352C, the world may end at any moment. Have a nice day.

Current Project:



Status:Complete

Previous project status: Failed/Quit

Current Issue

C++ : fsteam help



depends on where you hook it too. Hooks are the part of the code SMW runs, but you hijack to run your code. If you hooked it to a piece of code that always runs, you would lose yoshi as soon as you touch hi (with some side effects of course).
hook example:

Code
Code_123456:
LDA #$01
STA $19
[...]


which in hex would be:
Code
 A9 01
85 19

4 bytes, the same as a JSL $XXXXXX. So then
Code
org $123456 ;originate your code at the start of the LDA #$01...
JSL Main
org !FREESPACE ;originate at freespace designated by a definition
Main: 
;loseyoshicode
LDA #$01
STA $19
RTL

you would lose yoshi everytime the code at $123456 is executed. Hope that helps.
Originally posted by Kieran
Again, read what OP said. I see no mentioning of Linux or hatred of Windows.

Just because he didn't intend to do something doesn't mean it's not worth it to mention it.

--------------------
*WARNING: due to cosmic radiation, Quantum fluctuations, or earth going into sector x79352C, the world may end at any moment. Have a nice day.

Current Project:



Status:Complete

Previous project status: Failed/Quit

Current Issue

C++ : fsteam help



Well, like most of my little itty bitty things I start with C++, they always involve Fstream.h, but my one little issue with it is how binary mode works exactly. AKA :
Code
#include <fstream>
#include <iostram>

int num=0;

main() {
cout<<"insert number\n";
cin>>num;
ofstream file;
file.open(file.bin, ios::binary)
file<<num;
}

What would file.bin contain? lets say I input 2. would it be 00000010? if so, what if the example became:
Code
#include <fstream>
#include <iostram>

char letter[20];

main() {
cout<<"insert phrase\n";
cin>>letter;
ofstream file;
file.open(file.bin, ios::binary)
file<<letter;
}

? would it convert it to ASCII and then to binary? Isn't that the same as text mode?

--------------------
*WARNING: due to cosmic radiation, Quantum fluctuations, or earth going into sector x79352C, the world may end at any moment. Have a nice day.

Current Project:



Status:Complete

Previous project status: Failed/Quit

Current Issue

C++ : fsteam help



This thread is now one of the reasons I love this site. Too many ROFLOL moments on this place. Also, it's based on a cool thing to do. this site has taught me many epic things.

--------------------
*WARNING: due to cosmic radiation, Quantum fluctuations, or earth going into sector x79352C, the world may end at any moment. Have a nice day.

Current Project:



Status:Complete

Previous project status: Failed/Quit

Current Issue

C++ : fsteam help



my compiler would kill me for that code too, but that isn't really necessary for this example. anyway, in my actual code, my issue was the <<'s and >>'s. so the file.reads/writes take 2 arguments.
Code
#include <fstream>
#include <iostram> 
int num=0; 
int main() 
{ 
cout<<"insert number\n"; 
cin>>num; 
ofstream file; 
file.open(file.bin, ios::binary) 
file.write((char*)&num, sizeof(num)); 
} 

but would you replace the (char*) with (int*) or must it be a char?

I also seem to have another issue. the GUI i'm using seems to have strings formatted as glib::ustring, but fstream wants a const char*, so how would that conversion take place? I've read something about std::strings having a c_str() member function, but I might be able to convert the glib::ustring into a std::string somehow.

Now the spaces in files are giving me issues. Can you somehow override the copy until a space way this works? like this:
Code
...
char Buffer[256];
...
ifstream file("file.txt");
int length = sizeof(file);

file.read(Buffer, length)


would it overide it or no?I currently use << and >> for text operations for the sake of convienience.

--------------------
*WARNING: due to cosmic radiation, Quantum fluctuations, or earth going into sector x79352C, the world may end at any moment. Have a nice day.

Current Project:



Status:Complete

Previous project status: Failed/Quit

Current Issue

C++ : fsteam help



very hard : neither 12:00.00 A.M. on January 1, 2000?". It's in the middle.
normal : 7 since it needs winding on the 8th day?

--------------------
*WARNING: due to cosmic radiation, Quantum fluctuations, or earth going into sector x79352C, the world may end at any moment. Have a nice day.

Current Project:



Status:Complete

Previous project status: Failed/Quit

Current Issue

C++ : fsteam help



I have a general wiki Question : Why can you only link to pictures on the wiki (guessing copyright issues, but that doesn't really help).

--------------------
*WARNING: due to cosmic radiation, Quantum fluctuations, or earth going into sector x79352C, the world may end at any moment. Have a nice day.

Current Project:



Status:Complete

Previous project status: Failed/Quit

Current Issue

C++ : fsteam help



Thanks. so in
Code
// get length of file:
is.seekg (0, ios::end);
length = is.tellg();
is.seekg (0, ios::beg);

the seekg(0, ios::end) moves the read/write pointer to the end of the file, tellg() shows how many bytes into the file that is, and then the other seekg sets it back to the beginning? and the 0s in the seekg are the exact amount of bytes you want to move in addition to the starting locations the ioses give, correct? so if I just took a ridiculous ammount of bytes and put it in for the 2nd argument of the file.write(), it would read that my bytes regardless of spaces?

--------------------
*WARNING: due to cosmic radiation, Quantum fluctuations, or earth going into sector x79352C, the world may end at any moment. Have a nice day.

Current Project:



Status:Complete

Previous project status: Failed/Quit

Current Issue

C++ : fsteam help



Pages: « 1 218 19 20 21 »
Pseudonym's Profile - Posts by Pseudonym

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2020 - SMW Central
Legal Information - Privacy Policy - Link To Us


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy