Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [12:59] == luckytyphlosion [63ebb6a1@gateway/web/freenode/ip.99.235.182.161] has joined #pret
- [13:03] <luckytyphlosion> heh
- [13:04] <luckytyphlosion> conflict when pulling upstream
- [13:36] == Schattenjager [~Schattenj@mobile-access-bcee8c-29.dhcp.inet.fi] has joined #pret
- [14:16] == ShantyTown [~ShantyTow@50.46.102.18] has joined #pret
- [14:27] <Schattenjager> I was supposed to get so much more done this weekend.
- [14:34] <Schattenjager> Isn't Emerald pretty well documented?
- [14:34] <Schattenjager> A friend of mine is interested in working with Emerald for a hack. I'm not into 3rd gen hacking at all, but for a friend, sure.
- [14:35] <luckytyphlosion> if you're planning on making gen 3 hacks, don't use the disassembly unless your hack is very technical
- [14:35] <luckytyphlosion> e.g. "text prints instantly" rom
- [14:35] <Schattenjager> Yeah, probably not.
- [15:13] == PikalaxALT [~PikalaxAL@unaffiliated/pikalaxalt] has quit [Ping timeout: 265 seconds]
- [15:35] == Linnie [9686f51b@gateway/web/cgi-irc/kiwiirc.com/ip.150.134.245.27] has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
- [16:01] <luckytyphlosion> ShantyTown: do you use linux line endings or windows line endings?
- [16:01] <ShantyTown> not sure
- [16:02] <ShantyTown> I have "Unix line endings" checked in Sublime Text
- [16:02] <ShantyTown> I also used vi to edit the .gitignore file
- [16:02] <ShantyTown> that might have used windows?
- [16:03] <luckytyphlosion> Sublime Text?
- [16:03] <ShantyTown> text editor
- [16:04] <luckytyphlosion> ah
- [16:05] <luckytyphlosion> well I run windows and I was thinking if I should add a .gitattributes file to convert all line endings to lf
- [16:07] <@iimarckus> we want unix line endings
- [16:07] <@iimarckus> if the gitattributes thing works then by all means
- [16:08] <ShantyTown> luckytyphlosion: I wrote a 2-bit depth version of PlayPikachuPCM
- [16:09] <ShantyTown> luckytyphlosion: but I haven't been able to make a good pcm file to use with it
- [16:09] <luckytyphlosion> using pcm.py?
- [16:10] <ShantyTown> that's the hard part. I'm having trouble coming up with a good algorithm for converting the .wav file into pcm
- [16:10] <luckytyphlosion> how does your old algorithm work?
- [16:10] <ShantyTown> the first couple i've tried have been crappy
- [16:10] <ShantyTown> well the old algorithm is easy for 1-bit samples
- [16:11] <luckytyphlosion> btw your method basically writes a 2 bit volume to rNRsomething/$ff1c?
- [16:11] <ShantyTown> ya
- [16:11] == Schattenjager- [~Schattenj@mobile-access-bcee8c-29.dhcp.inet.fi] has joined #pret
- [16:11] <ShantyTown> and it only does the "rept" block 3 times, instead of 7
- [16:12] == Schattenjager [~Schattenj@mobile-access-bcee8c-29.dhcp.inet.fi] has quit [Ping timeout: 272 seconds]
- [16:12] <luckytyphlosion> hm
- [16:12] <ShantyTown> which is correct
- [16:14] <ShantyTown> might be able to use ffmpeg to desample the .wav, instead of pcm.py doing some complicated algorithm
- [16:15] <ShantyTown> actually, i don't think so
- [16:15] <ShantyTown> wave files have minium bit depth of 8
- [16:17] <luckytyphlosion> bit depth?
- [16:17] <ShantyTown> yes. the number of bits per sample
- [16:18] <ShantyTown> for bit depth = 1, pcm.py just fakes it. The resulting wave file is 8-bit, but all the samples are either 0xff or 0x00
- [16:18] <ShantyTown> so it's essentially 1-bit
- [16:19] <luckytyphlosion> could you make the samples like "(0xff / 4) * 3"?
- [16:19] <luckytyphlosion> or wait
- [16:20] <ShantyTown> yes
- [16:20] <ShantyTown> sort of
- [16:20] <ShantyTown> 0x00, 0x3f, 0x7f, and 0xff
- [16:20] <ShantyTown> are the amplitudes the gameboy can do
- [16:20] <ShantyTown> which is kind of awkward
- [16:20] <luckytyphlosion> what's the problem to approximate the amplitudes?
- [16:21] <ShantyTown> so it probably makes sense to clamp the samples to 0x00, 0x7f, and 0xff
- [16:21] <ShantyTown> I can't come up with a good algorithm for approximating (clamping) those amplitudes
- [16:21] <luckytyphlosion> 1.5 bit lel
- [16:21] <ShantyTown> right :)
- [16:22] <ShantyTown> Algorithm for 1-bit: If sample > average of all samples, 0xff. Else 0x00
- [16:22] <ShantyTown> Algorithm for 1.5-bit: (this is what I tried, but it's bad)
- [16:23] <ShantyTown> Find min and max samples from wav file
- [16:23] <luckytyphlosion> what if you pretend the average is fixed?
- [16:23] <ShantyTown> normalize a sample based on those
- [16:23] <ShantyTown> clamp it to the nearest value
- [16:27] <luckytyphlosion> what about have get the average amplitude, get the range for both min and max, average those ranges out and add/subtract from the average amplitude?
- [16:28] <ShantyTown> not sure what you mean by "average those ranges out"
- [16:29] <luckytyphlosion> the range of the min and average, and the min and max
- [16:29] <luckytyphlosion> then average the ranges
- [16:30] <ShantyTown> I think anything that involves taking the range of the min and max values is flawed
- [16:30] == EmuScyther [~scyther@ip-89-176-140-215.net.upcbroadband.cz] has joined #pret
- [16:30] <ShantyTown> because different sections of the wave file have different volumes
- [16:31] <ShantyTown> 1-bit doesn't suffer from this problem
- [16:31] == EmuScyther has changed nick to Guest94018
- [16:31] <ShantyTown> 1.5-bit gets hurt because samples that should be 0xff or 0x00 get mapped to 0x7f
- [16:33] <luckytyphlosion> fake 0xbf by alternating between 0xff and 0x7f?
- [16:34] <ShantyTown> that would create an ugly high-pitched tone
- [16:35] == MrElephant [~Stegie@cpe-74-132-23-16.kya.res.rr.com] has joined #pret
- [16:35] <luckytyphlosion> hm
- [16:36] <ShantyTown> maybe changing the method of how it clamps would be better. Like... if the sample is > 25% away from the middle, it gets clamped to 0x00 or 0xff
- [16:36] <ShantyTown> rather than > 50%
- [16:36] <luckytyphlosion> maybe
- [16:37] <luckytyphlosion> ugh I don't have an exact rom
- [16:37] <luckytyphlosion> pokepinball.gbc baserom.gbc differ: byte 335, line 1
- [16:37] <ShantyTown> from a clean repo?
- [16:37] <luckytyphlosion> no I made a script to change address comments
- [16:37] <luckytyphlosion> didn't touch any code
- [16:38] <luckytyphlosion> or at least as I'm aware of
- [16:38] == Guest94018 has changed nick to scyther
- [16:40] <ShantyTown> do you have local changes in pret?
- [16:41] <ShantyTown> I just built a clean pokepinball repo, with an exact rom
- [16:42] <luckytyphlosion> yes I reset to the latest commit
- [16:42] == MrElephant [~Stegie@cpe-74-132-23-16.kya.res.rr.com] has quit [Ping timeout: 272 seconds]
- [16:43] <ShantyTown> what's the top of "git log" for you?
- [16:44] <luckytyphlosion> uh
- [16:44] <luckytyphlosion> you mean git status?
- [16:45] <luckytyphlosion> I'm trying to run compare.sh but it refuses to work
- [16:45] <luckytyphlosion> "compare.sh: line 11: syntax error: unexpected end of file"
- [16:46] <ShantyTown> sure, run "git status" in both pokepinball and pret
- [16:48] <luckytyphlosion> actually can you send me your .map file?
- [16:49] <scyther> we are doing pinball now too?
- [16:49] <ShantyTown> ya
- [16:49] <ShantyTown> to both
- [16:49] <ShantyTown> of you
- [16:49] <scyther> Why no TCG? That has great potential
- [16:50] <luckytyphlosion> there's tcg
- [16:50] <scyther> where?
- [16:50] <luckytyphlosion> github.com/pret/poketcg
- [16:50] == MrElephant [~Stegie@cpe-74-132-23-16.kya.res.rr.com] has joined #pret
- [16:50] <luckytyphlosion> https://www.github.com/pret/poketcg
- [16:50] <ShantyTown> luckytyphlosion:here's pokepinball.sym: http://pastebin.com/VK9Pttn9
- [16:50] <luckytyphlosion> incomplete
- [16:51] <scyther> Cool
- [16:52] <scyther> Can't wait for custom Puzzle Challange modes :P
- [16:53] <luckytyphlosion> no changes
- [16:53] <luckytyphlosion> hm
- [16:53] <ShantyTown> "git stash"
- [16:53] <luckytyphlosion> what does git stash do?
- [16:54] <ShantyTown> then make to see if a clean repo is fine
- [16:54] <ShantyTown> git stash saves your changes and discards them
- [16:54] <ShantyTown> "git stash pop" will bring them back
- [16:55] == Missingno_force [~missingno@dslb-094-219-018-149.094.219.pools.vodafone-ip.de] has quit [Quit: xor eax, eax; jmp eax;]
- [16:56] <luckytyphlosion> >pokepinball.txt
- [16:56] <luckytyphlosion> what
- [16:56] <ShantyTown> what
- [16:57] <ShantyTown> I'm giving up on the 1.5-bit stuff for now.
- [16:57] <luckytyphlosion> ok
- [16:57] <luckytyphlosion> ah found the error
- [16:57] <ShantyTown> Changing the thresholds helped, but it still sounds worse (and quieter) than 1-bit
- [16:58] <ShantyTown> wait, so was the error something you did, or is pokepinball in a bad state?
- [16:59] <luckytyphlosion> idk
- [16:59] == MrElephant [~Stegie@cpe-74-132-23-16.kya.res.rr.com] has quit [Ping timeout: 244 seconds]
- [17:00] <luckytyphlosion> wait I got it, my script removed 'include "charmap.asm"'
- [17:01] <luckytyphlosion> ya fixed
- [17:03] <ShantyTown> pokepinball is getting kind of annoying to make progress on
- [17:03] <luckytyphlosion> why?
- [17:03] <ShantyTown> there are hundreds of pointers to graphics/tilemaps/palettes
- [17:03] <ShantyTown> and that stuff isn't interesting to me
- [17:03] <luckytyphlosion> hm
- [17:04] <ShantyTown> although, most of the bonus stages haven't been documented yet
- [17:04] <luckytyphlosion> I have to do map scripts and block/tilesets with pokeyellow
- [17:04] <ShantyTown> so that's fun
- [17:04] <ShantyTown> I assumed most of that was overlapping with pokered
- [17:04] <luckytyphlosion> yes
- [17:05] <luckytyphlosion> so I can't exactly disassemble it with gbz80disasm.py
- [17:05] <ShantyTown> why not?
- [17:06] <luckytyphlosion> I'd lose documentation over untouched spots
- [17:10] <luckytyphlosion> wait did I add .wav to binary files?
- [17:10] <luckytyphlosion> for .gitattributes
- [17:10] <luckytyphlosion> oh crap
- [17:13] <luckytyphlosion> what's ".w32.interleave"?
- [17:31] <Not-f7bb> [pokeyellow] luckytyphlosion pushed 7 commits to master [+42/-0/±23] http://git.io/vWViV
- [17:31] <Not-f7bb> [pokeyellow] luckytyphlosion 8601505 - Fix submodule 'extras' url
- [17:31] <Not-f7bb> [pokeyellow] luckytyphlosion 998ada6 - Properly ignore extras?
- [17:31] <Not-f7bb> [pokeyellow] luckytyphlosion fdad37c - Ignore extras1\ old extras except with some changes made for personal use
- [17:31] <Not-f7bb> [pokeyellow] ... and 4 more commits.
- [17:37] == YamaArashi_ [~YamaArash@cpe-172-91-236-222.socal.res.rr.com] has joined #pret
- [17:39] == YamaArashi [~YamaArash@cpe-172-91-236-222.socal.res.rr.com] has quit [Ping timeout: 244 seconds]
- [17:42] <ShantyTown> "width 32 pixels" "interleave the tiles"
- [17:43] <luckytyphlosion> ah
- [17:49] <Schattenjager-> Hum.
- [17:50] <Schattenjager-> Does anyone if there's something in pokered that glitches if a pokémon of a certain index number, etc is put in the wild?
- [17:50] <Schattenjager-> For some reason my game loads a trainer battle on Route in the grass if I put Ralts in there.
- [17:51] <Schattenjager-> Ralts works fine if it's in a trainer's team.
- [17:58] <luckytyphlosion> pokered?
- [17:58] <Schattenjager-> Yes.
- [17:58] <luckytyphlosion> do you mean a sanqui rom?
- [17:58] <Schattenjager-> My own project, using pokered.
- [17:58] <scyther> heh, I would see a problem in getting ralts to appear in regular red ;)
- [17:58] <luckytyphlosion> oh
- [17:59] <luckytyphlosion> wCurOpponent is shared between trainers and pokemon
- [17:59] <luckytyphlosion> any index > 199 will generate a trainer
- [17:59] <luckytyphlosion> you'll have to add a separate value for trainers
- [17:59] <luckytyphlosion> if you want 255 pokemon
- [17:59] == scyther [~scyther@ip-89-176-140-215.net.upcbroadband.cz] has quit [Read error: Connection reset by peer]
- [17:59] <Schattenjager-> Yeah, I was thinking it was something like that.
- [17:59] <luckytyphlosion> well more like 254 pokemon
- [17:59] <Schattenjager-> Thanks. :)
- [18:00] <luckytyphlosion> 1 index for hex0 and hexff
- [18:00] <Schattenjager-> Isn't it 251?
- [18:00] <Schattenjager-> The fossils take some space
- [18:00] <Schattenjager-> and the ghost
- [18:00] <luckytyphlosion> oh right
- [18:00] <luckytyphlosion> so 252 :P
- [18:00] <luckytyphlosion> or 251
- [18:00] <luckytyphlosion> ugh
- [18:00] <Schattenjager-> Yes.
- [18:21] <Schattenjager-> Right, it's the $C8.
- [18:21] == PikalaxALT [~PikalaxAL@unaffiliated/pikalaxalt] has joined #pret
- [18:23] <PikalaxALT> padz: have you had the chance to review my followup commits to pokecrystal?
- [18:30] == Schattenjager- [~Schattenj@mobile-access-bcee8c-29.dhcp.inet.fi] has quit [Ping timeout: 256 seconds]
- [18:34] <padz> PikalaxALT: only thing left is the itemmenu constants
- [18:35] <padz> for the last byte of item_attributes the two nybbles take the same constants
- [18:35] <padz> just top for overworld and bottom for battle
- [18:35] <padz> so the battle_nofield etc stuff is pointless and probably incorrect
- [18:36] <PikalaxALT> um
- [18:37] <PikalaxALT> i disagree
- [18:38] <PikalaxALT> ITEMMENU is for which menu the item's use redirects to
- [18:38] <PikalaxALT> ITEMCONTEXT determines whether the item can be used in the field, in battle, or both
- [18:38] <padz> its nice that you disagree, but its one or the other
- [18:38] <padz> can you prove that its the latter
- [18:38] <PikalaxALT> POKe DOLL
- [18:39] <padz> the poke doll cant be used in the overworld, so its 0
- [18:39] <PikalaxALT> ah
- [18:39] <padz> in battle it exits the item menu, so its 6
- [18:39] <PikalaxALT> not a good example in my favor, huh
- [18:39] <PikalaxALT> lemme see
- [18:39] <padz> (like balls)
- [18:40] <padz> that was what i got from reading the code some time ago, its possible i got it wrong but i think you confirmed it
- [18:40] <PikalaxALT> alright
- [18:42] == Schattenjager [~Schattenj@mobile-access-bcee4a-154.dhcp.inet.fi] has joined #pret
- [18:47] <luckytyphlosion> can you use a constant as args in a macro?
- [18:47] <Not-f7bb> [pokecrystal] PikalaxALT synchronize pull request #322: No more ldtile or dwtile - http://git.io/vCr0O
- [18:49] <padz> luckytyphlosion: macros dont evaluate args, so you can use anything
- [18:51] <luckytyphlosion> hm
- [18:53] <luckytyphlosion> this isn't working as I'd expected
- [18:54] <padz> go on
- [18:54] <luckytyphlosion> if I try to do "pcm const_value", it uses the string "const_value" instead of the value of const_value
- [18:54] <padz> right
- [18:55] <luckytyphlosion> so how do I make the macro use the value of const_value?
- [18:55] <padz> would need to see the macro to know what youre trying to do
- [18:56] <luckytyphlosion> http://pastebin.com/DGeetmsd
- [18:58] <PikalaxALT> > dw .end - .start
- [18:58] <luckytyphlosion> yes?
- [18:58] <luckytyphlosion> surprisingly it doesn't break
- [18:58] <luckytyphlosion> since it's local
- [18:58] <PikalaxALT> why do you need that?
- [18:58] <padz> because thats how it works
- [18:58] <luckytyphlosion> to specify the length of the pcm file
- [18:58] <padz> thats what yellow does
- [18:58] <PikalaxALT> oh my bad
- [18:59] <PikalaxALT> my brain somehow interpreted dw as ds
- [18:59] <FL4SHK> DS is fourth and fifth gen games
- [18:59] <PikalaxALT> ...
- [18:59] <luckytyphlosion> heh
- [18:59] <luckytyphlosion> ds = define size
- [18:59] <FL4SHK> hah
- [18:59] <FL4SHK> dual screen
- [19:00] == ShantyTown [~ShantyTow@50.46.102.18] has quit [Quit: Leaving]
- [19:10] <luckytyphlosion> uh
- [19:11] <luckytyphlosion> wtf is this supposed to mean
- [19:11] <luckytyphlosion> ERROR: cries.asm(135) -> cries.asm(1) :
- [19:11] <luckytyphlosion> syntax error
- [19:11] <Schattenjager> Did you forget a , somwhere, or something?
- [19:15] <luckytyphlosion> oh I see
- [19:15] <luckytyphlosion> it's an error in a rept block
- [19:15] <PikalaxALT> rept $1000 \ nop \ endr
- [19:15] <PikalaxALT> 4000*
- [19:16] <Schattenjager> Hey. Offtopic. Can the Master Ball miss in gen 1?
- [19:19] <PikalaxALT> doesn't look like it
- [19:20] <Schattenjager> It's my understanding also that it bypasses stuff that could make it miss.
- [19:21] <Schattenjager> Someone was adament about the fact that the master ball is a victim of the potential gen 1 miss.
- [19:22] <PikalaxALT> pokered/engine/items/items.asm:192
- [19:26] <padz> it can fail on marowak
- [19:26] <padz> and youd lose the ball
- [19:27] <padz> but i dont think you get it until after
- [19:27] <Schattenjager> Yeah, Silph CO is after that.
- [19:27] <luckytyphlosion> is \@ global across all files?
- [19:29] <PikalaxALT> i think it's local to the macro that calls it
- [19:29] <PikalaxALT> @ = anonymous
- [19:33] <luckytyphlosion> aha
- [19:33] <luckytyphlosion> \@ is amazing
- [19:33] <luckytyphlosion> I can do something like:
- [19:33] <luckytyphlosion> \@ EQU const_value
- [19:33] <luckytyphlosion> ; stuff
- [19:33] <luckytyphlosion> const_value = const_value + 1
- [19:34] <YamaArashi_> It doesn't work on trainer's pokemon either. You lose the ball too, I think
- [19:34] <YamaArashi_> *trainers'
- [19:35] <luckytyphlosion> it won't work either if you write code to where the OAM DMA routine is to jump to some code that will always make the ball miss
- [19:35] <luckytyphlosion> :P
- [19:35] <Schattenjager> That would be awesome in a hack.
- [19:35] <Schattenjager> "Omg, master balls are free at the mart"
- [19:35] <Schattenjager> "..what"
- [19:36] <luckytyphlosion> lel
- [19:36] <luckytyphlosion> well if it was a hack you'd just edit the ball code itself
- [19:36] <luckytyphlosion> the OAM DMA routine is in hram
- [19:37] <luckytyphlosion> and it's called every frame
- [19:37] <luckytyphlosion> so you can modify the code in hram to jump wherever you want
- [19:38] <Schattenjager> Yeah. Actually, I was thinking about that today. I had this idea of a youngster Joey hack. Where you start off with a Rattata. And are not allowed to catch other mons.
- [19:38] <Schattenjager> I could just make all the balls fail.
- [19:38] <PikalaxALT> padz: anything else for 322?
- [19:38] <PikalaxALT> (i'm gonna keep pressing until it's merged, i don't want to cram anything else in 322 because it's already too full of changes Kappa)
- [19:39] <luckytyphlosion> ugh so close
- [19:39] <luckytyphlosion> Unable to open incbin file 'wav/_481.pcm'
- [19:39] <PikalaxALT> Wow luckytyphlosion OneHand
- [19:39] <luckytyphlosion> because fucking \@ has to put _ at the start of it
- [19:40] <PikalaxALT> why are you using \@ for a filename?
- [19:40] <luckytyphlosion> \@ is a special character that increments every time in rept blocks
- [19:40] <luckytyphlosion> but I figured out that you can define it using EQUS
- [19:41] <luckytyphlosion> so I've been using it as a sort of "variable"
- [19:41] <luckytyphlosion> that I can put in a file name
- [19:41] <PikalaxALT> i see
- [19:41] <luckytyphlosion> incidentally, the wav files I'm dealing with are numbers
- [19:41] <PikalaxALT> gotcha
- [19:50] <luckytyphlosion> wait
- [19:50] <luckytyphlosion> does scan_includes account for filenames created through macros?
- [19:50] <luckytyphlosion> like "wav/\1.pcm"
- [19:51] <PikalaxALT> i doubt it
- [19:51] <luckytyphlosion> crap
- [19:52] <luckytyphlosion> screw it I'll define everything manually
- [19:52] <luckytyphlosion> well except for the banks
- [19:52] <luckytyphlosion> or maybe I'll have to manually define them too
- [19:59] == Schattenjager [~Schattenj@mobile-access-bcee4a-154.dhcp.inet.fi] has quit [Ping timeout: 240 seconds]
- [20:07] == Schattenjager [~Schattenj@mobile-access-bcee4a-154.dhcp.inet.fi] has joined #pret
- [20:33] == Carl_Laptop [~Carl@unaffiliated/carl-miller/x-4159925] has joined #pret
- [20:34] <padz> 16:52 luckytyphl| screw it I'll define everything manually
- [20:34] <padz> this is what python is for
- [20:35] <FL4SHK> neat
- [20:36] <padz> PikalaxALT: rename ITEMMENU_FIELD to ITEMMENU_CLOSE
- [20:36] <padz> then ill merge
- [20:39] <luckytyphlosion> yeah I guess I should make a script
- [20:39] <luckytyphlosion> but maybe tomorrow
- [20:42] <PikalaxALT> padz: k
- [20:43] <Not-f7bb> [pokecrystal] PikalaxALT synchronize pull request #322: No more ldtile or dwtile - http://git.io/vCr0O
- [20:43] <PikalaxALT> padz: ^
- [20:44] <PikalaxALT> commit message is backwards FailFish
- [20:44] <PikalaxALT> forgive my derps, i'm very tired
- [20:48] <Not-f7bb> [pokecrystal] yenatch closed pull request #322: Split out and comment phone and animation code. - http://git.io/vCr0O
- [20:48] <Not-f7bb> [pret/pokecrystal] yenatch pushed 15 commits to master [+31/-3/±1364] http://git.io/vWwIW
- [20:48] <Not-f7bb> [pret/pokecrystal] PikalaxALT 1e2ff96 - Replaced "ldtile" and "dwtile" with the "tile" equs macro
- [20:48] <Not-f7bb> [pret/pokecrystal] PikalaxALT 4fa6c6d - Split up bank 2; other relabelings
- [20:48] <Not-f7bb> [pret/pokecrystal] PikalaxALT da7849d - Restructured functions in main.asm to resemble the home functions they clone
- [20:48] <Not-f7bb> [pret/pokecrystal] ... and 12 more commits.
- [20:49] <PikalaxALT> Kreygasm
- [20:49] <PikalaxALT> now to start working on 323 OneHand
- [20:50] == ProjectRevoTPP [ProjectRev@unaffiliated/twitch-plays-pbr/x-9644567] has joined #pret
- [20:50] <FL4SHK> I think I'll look into how to do git merge
- [21:02] <FL4SHK> Nope, too tired
- [21:11] == MrElephant [~Stegie@cpe-74-132-23-16.kya.res.rr.com] has joined #pret
- [21:24] == MrElephant [~Stegie@cpe-74-132-23-16.kya.res.rr.com] has quit [Ping timeout: 250 seconds]
- [21:28] == PikalaxALT [~PikalaxAL@unaffiliated/pikalaxalt] has quit [Ping timeout: 250 seconds]
- [21:41] <luckytyphlosion> shantytown: are you still here?
- [21:44] <padz> if tab complete does not work, no
- [21:45] <FL4SHK> ^
- [21:45] <wodim> ~
- [21:48] == padz changed the topic of #pret to: https://github.com/wodim
- [21:49] <wodim> ruler
- [21:51] == Carl_Laptop changed the topic of #pret to: https://github.com/pret
- [21:52] <FL4SHK> wodim is from Spain?
- [21:52] <FL4SHK> Spain is where nerds live.
- [21:54] <FL4SHK> therefore, wodim is possibly a nerd
- [21:54] <wodim> how can I tell?
- [21:55] <FL4SHK> You have a Github account
- [21:55] <FL4SHK> You're a nerd
- [21:55] <wodim> I see
- [21:55] <FL4SHK> I have a Github account too, but I don't live in Spain
- [21:56] <wodim> too bad
- [21:56] <wodim> you're not a nerd
- [21:56] <wodim> just a ne
- [21:56] <wodim> or an rd
- [21:56] == PikalaxALT [~PikalaxAL@unaffiliated/pikalaxalt] has joined #pret
- [21:58] <wodim> PikalaxALT: would you consider FL4SHK a nerd, a ne or an rd?
- [21:58] <FL4SHK> I consider myself a nerd
- [21:59] <wodim> for that you have to have a github account and to live in Spain
- [22:03] == FL4SHK [~fl4shk@2601:486:2:9870:222:19ff:fe31:1929] has quit [Ping timeout: 240 seconds]
- [22:05] == FL4SHK [~fl4shk@2601:486:2:9870:222:19ff:fe31:1929] has joined #pret
- [22:27] <Not-f7bb> [pokecrystal] JimB16 synchronize pull request #319: Added comments and changed labels (mainly for AI- and Battle-Functions) - http://git.io/vCe8H
- [22:28] <padz> forgot about you
- [22:35] <padz> JimB16: those are some really long labels
- [22:37] <JimB16> some are more like comments so I could read the code better, but I can try to shorten them in the next days
- [22:53] == Carl_Laptop [~Carl@unaffiliated/carl-miller/x-4159925] has quit [Ping timeout: 246 seconds]
- [22:59] <ProjectRevoTPP> luckytyphlosion, are you the one working on yellow repo?
- [22:59] <luckytyphlosion> ya
- [22:59] <ProjectRevoTPP> thanks again if you are
- [22:59] <ProjectRevoTPP> TPP has an idea about a hack of yellow we want to do (after our next year hack), but it can only be done if there's a working repo of yellow so
- [22:59] <ProjectRevoTPP> again, thanks
- [22:59] <ProjectRevoTPP> o/
- [23:00] <luckytyphlosion> that might be hard because I don't know how I'll be able to disassemble map scripts
- [23:03] <padz> huh?
- [23:17] <Not-f7bb> [pokeyellow] zerfgog starred pokeyellow - http://git.io/vWw2g
- [23:25] == MrElephant [~Stegie@cpe-74-132-23-16.kya.res.rr.com] has joined #pret
- [23:36] <luckytyphlosion> padz: isn't gbz80disasm.py semi-broken?
- [23:42] <padz> go on
- [23:47] <luckytyphlosion> something about symfile detection being weird
- [23:48] <luckytyphlosion> unless if it was fixed
- [23:48] <padz> i thought shantytown fixed it
- [23:50] <JimB16> I also wanted to ask if gbz80disasm.py disassembles 'halt' or 'stop' wrongly with a 'nop' following?
- [23:50] <padz> dont think so
- [23:50] <padz> oh
- [23:50] <padz> yes
- [23:51] <padz> default rgbasm behavior is nopping halts
- [23:51] <padz> -h is for evil games like pokered that dont
- [23:51] <padz> dont know re stop
- [23:51] <luckytyphlosion> what about even eviler games that don't even use halt?
- [23:51] <luckytyphlosion> *cough* pokepinball
- [23:52] <luckytyphlosion> http://pastebin.com/fAc3tR2T
- [23:52] <JimB16> I think it was only 1 of the 2 cmds, just didn't remember which.
- [23:52] <luckytyphlosion> after copypasting the billion files needed for wram.py to work
- [23:53] <luckytyphlosion> so I guess wram.py needs to be fixed
- [23:54] <luckytyphlosion> why can't it use a symfile instead
- [23:54] <padz> i thought it did
- [23:54] <luckytyphlosion> n o p e
- [23:54] <luckytyphlosion> it requires the wram.asm file you use in the repo
- [23:55] == JimB [~Jim@p57A3FBCD.dip0.t-ipconnect.de] has joined #pret
- [23:55] <padz> well yeah, bssreader does
- [23:55] <padz> because thats what it does
- [23:55] <padz> hmm
- [23:56] <luckytyphlosion> wait
- [23:56] <luckytyphlosion> wram.py uses eval
- [23:56] <padz> yeah it should default to sym
- [23:56] <luckytyphlosion> I thought eval was evil
- [23:56] <padz> yes it does
- [23:56] <padz> it is
- [23:58] == JimB16 [~Jim@p5DCDE299.dip0.t-ipconnect.de] has quit [Ping timeout: 255 seconds]
- [23:58] <luckytyphlosion> why does it need to use eval anyways?
- [00:00] <padz> bssreader basically pretends to be rgbasm
- [00:01] <padz> using read_symfile instead is a good idea
- [00:01] <luckytyphlosion> hm
- [00:01] <luckytyphlosion> only problem is that symfiles don't include constants/hram
- [00:01] <luckytyphlosion> hardware constants can be manually supplied
- [00:03] <luckytyphlosion> oh
- [00:03] <luckytyphlosion> so it's defining constants
- [00:04] <padz> i think that was the main grab (picked up enums)
- [00:04] <padz> but i dont remember what wram.py was for, i dont think it was for gbz80disasm
- [00:05] <luckytyphlosion> well gbz80disasm.py is calling a function in wram.py
- [00:06] <luckytyphlosion> oh
- [00:06] <luckytyphlosion> 0b = binary
- [00:07] <padz> obviously it uses wram.py...
- [00:11] <luckytyphlosion> what why is value "(rNR10 0b 0x100)"
- [00:12] <padz> ????
- [00:12] <luckytyphlosion> in "self.constants[name] = eval(value, self.constants.copy())", value is (rNR10 0b 0x100)
- [00:12] <luckytyphlosion> which is why the script breaks
- [00:13] <luckytyphlosion> self.constants.copy() works perfectly fine though
- [00:13] <padz> oh
- [00:13] <padz> its reading mod as 0b
- [00:13] <luckytyphlosion> he
- [00:13] <luckytyphlosion> heh
- [00:13] <luckytyphlosion> confirmed / $100 > % $100
- [00:14] <padz> do you mean & $ff
- [00:14] <luckytyphlosion> right
- [00:14] <luckytyphlosion> keep confusing them
- [00:14] <padz> depends on context, but there should just be a lo() or hi() function
- [00:18] <luckytyphlosion> so I made a very hacky fix by running a different set of code if there's a syntax error
- [00:18] <luckytyphlosion> now I get W_WATERRATE - @
- [00:20] <luckytyphlosion> more hacky stuff, replace @ with 0xd8a3
- [00:20] <luckytyphlosion> NameError: name 'W_WATERRATE' is not defined
- [00:21] <luckytyphlosion> man this is such a bad way to solve this
- [00:25] <luckytyphlosion> now it's saying that wMainDataEnd is not defined
- [00:25] <luckytyphlosion> NOW IT ASKS FOR A SYMFILE
- [00:26] <luckytyphlosion> OMG IT WORKED
- [00:26] <luckytyphlosion> I SOMEHOW GOT GBZ80DISASM.PY TO WORK
- [00:28] <luckytyphlosion> too bad it doesn't store pointers
- [00:30] <luckytyphlosion> if anyone is interested: http://pastebin.com/5Dc0fx9a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement