Go Back   Project64 Forums > General Discussion > Open Discussion

Reply
 
Thread Tools Display Modes
  #171  
Old 9th April 2014, 09:52 PM
retroben's Avatar
retroben retroben is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Jul 2013
Posts: 687
Default

Hey guys. Guess what?

I have to play the game again to find all of the jiggy spawn triggers and other events!

Edit:Nobody guessed.

Last edited by retroben; 13th April 2014 at 03:35 PM.
Reply With Quote
  #172  
Old 9th April 2014, 09:54 PM
HatCat's Avatar
HatCat HatCat is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Feb 2007
Location: In my hat.
Posts: 16,236
Default

lmao, I don't know if I'll implement all the misc spawn events, character interaction records etc. in the save editor, but you're welcome to document all those trivial bits if you want to. If the documentation is clear enough I might implement them. Then again it's open-source; anyone can.
Reply With Quote
  #173  
Old 9th April 2014, 10:00 PM
retroben's Avatar
retroben retroben is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Jul 2013
Posts: 687
Default

Canary Unfair-ry CCL Jiggy Spawned
0x71D
06-->07

A hint above.^^^

Edit:Nobody guessed.

If the jiggy is already set as collected while the spawn never happened and the race just finished,Canary Mary dances for all eternity.

Last edited by retroben; 13th April 2014 at 03:38 PM.
Reply With Quote
  #174  
Old 9th April 2014, 10:06 PM
RPGMaster's Avatar
RPGMaster RPGMaster is offline
Alpha Tester
Project Supporter
Super Moderator
 
Join Date: Dec 2013
Posts: 2,008
Default

Lol well, I've run into a problem with strcpy lol. What do I do if i want to replace text and not add a null character?

Last edited by RPGMaster; 9th April 2014 at 10:11 PM.
Reply With Quote
  #175  
Old 9th April 2014, 10:19 PM
HatCat's Avatar
HatCat HatCat is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Feb 2007
Location: In my hat.
Posts: 16,236
Default

Something like strncpy or memcpy should still do it.
http://www.cplusplus.com/reference/cstring/strncpy/

I've never used strncpy before, so this is just a wild guess.

But it should be something along the lines of
Code:
char typo[] = "The quack brown fox jumps over the lazy dog.";

strncpy(typo + 4, "quick", 5);
Reply With Quote
  #176  
Old 9th April 2014, 10:23 PM
retroben's Avatar
retroben retroben is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Jul 2013
Posts: 687
Default

Cauldron Keep ShockPad Access
0x6D6
B3-->B7

Cauldron Keep Level

CK Warp Pads
0x73C

CK Entrance
01-->11

Top Of The Tower
11-->31

CK Bridge Lowered
0x748
88-->C8

Laser Security Disabled
0x773
84-->C4

Final Klungo Defeated
0x725
FB-->FF

First Tower Of Tragedy Visit
0x76D
63-->67

Credits Begin
67-->6F

Mingella Crushed
0x772
??-->1B

Which gets squished?
1B-->3B

Blobbelda's Consolation Prize
3B-->3F

Banjo lost or Grunty squashed?
3F-->7F

Tower Of Tragedy Rounds
0x74A

Round 2 Starts
C4-->C8

Final Round Starts
C8-->CC

Tower Of Tragedy Beaten?
CC-->D2

Gun Chamber Opened
D2-->D3

Bottles Revived
0x771
F4-->F5
Could be the whole scene event instead.

King Jingaling:Now let's party!
0x6D9
D4-->DC

party
0x6F6
E1-->C1

party
0x72E
F3-->F2

Hey It's Dingpot!
0x6F7
EB-->FB

HAG1 Jiggy Puzzle
0x72D
9F-->AF

HAG1 Door Dispelled
0x735
37-->3F

Gruntilda Pops Out Of HAG1
0x6CA
67-->77

Gruntilda Winkybunion Defeated
77-->7F

HAG1 Battle Starts
0x76D
6F-->7F

Last edited by retroben; 10th April 2014 at 12:52 AM.
Reply With Quote
  #177  
Old 9th April 2014, 11:09 PM
RPGMaster's Avatar
RPGMaster RPGMaster is offline
Alpha Tester
Project Supporter
Super Moderator
 
Join Date: Dec 2013
Posts: 2,008
Default

Rofl how ironic. So I read your post but didn't pay attention to memcpy. I spent like 10-20 minutes trying to see if I could get strncpy to work. It turns out that strncpy is not an intrinsic function so i can't use it. Then I instinctively decided to try memcpy lol... The thing was, I've tried using memcpy before and couldn't get it to work while disabling the default library. After some googling, I found out that I had to enable an option called /Zl to get memcpy to work lol.

I love how I figured it out right before I was going to give up on changing my implementation.
Reply With Quote
  #178  
Old 9th April 2014, 11:25 PM
HatCat's Avatar
HatCat HatCat is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Feb 2007
Location: In my hat.
Posts: 16,236
Default

Are you saying strncpy compiled to an actual call to strncpy?

Well I didn't expect that >.> I blame VS .

Well you could always still use strcpy with a backup of the old character before the terminating null byte overwrote it.
Reply With Quote
  #179  
Old 9th April 2014, 11:38 PM
RPGMaster's Avatar
RPGMaster RPGMaster is offline
Alpha Tester
Project Supporter
Super Moderator
 
Join Date: Dec 2013
Posts: 2,008
Default

Memcpy did the trick. Strncpy isn't included in the list of instrinsic fuctions provided by MSVC. Lol after making the changes, I noticed I had a few command typos . Looks like it's true that slow and steady wins the race. I guess I tend to make typos when I rush things.

I uploaded the lastest version the gui program . Now gray checkboxes skip those 5 settings. I also implemented the disable checkboxes. Now I'll probably wait until HatCat updates his save editor, because there's not much left to add atm.

Wow I tried implementing tabs but it seems like a lot of work. After some trial and error, I was able to make tabs, but it's very glitchy.

Last edited by RPGMaster; 10th April 2014 at 08:30 AM.
Reply With Quote
  #180  
Old 10th April 2014, 05:26 PM
HatCat's Avatar
HatCat HatCat is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Feb 2007
Location: In my hat.
Posts: 16,236
Default

No tabs in the GUI yet. D:
But yaaay, the checkbox graying works. I see you figured out the semi-checked / semi-grayed-out thing too.

Yeah, I was hoping retroben's notes would compress into something with all the data laid out before I start to implement all those trillions of bits he hacked out.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 11:08 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.