Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2014-02-12 11:30:46

uac.dario
New member
Registered: 2014-01-29
Post 4/7

Assemble and compile pokered disassemble (Windows)

Hi,

I need your help for compile a full disassembly of pokered.
The problem is that I can use only windows evironment and trying with Cygwin I encounter a lot of problem (install yacc, install rgbds, ecc)

can you explain my if it's possible and how?

Thanks,
Dario

Offline

#2 2014-02-12 12:09:09

Danny-E 33
Administrator
Registered: 2012-06-09
Post 733/1,030

Re: Assemble and compile pokered disassemble (Windows)

Yes, could you explain the problem you are currently encountering?

You can look here to make sure you have installed the right Cygwin packages and see how to install rgbds.


Red Hack: Pokémon Prototype

Total number of registered users: 7000+
Total number of active users: ~12

Offline

#3 2014-02-12 13:24:59

uac.dario
New member
Registered: 2014-01-29
Post 5/7

Re: Assemble and compile pokered disassemble (Windows)

Thanks for your quick reply =)

uh. I discover that is many difference between https://github.com/kanzure, github.com/iimarckus/, etc

Finally compile was done with this source : https://github.com/kanzure/pokered

which disassembly is better ?
- https://github.com/kanzure/pokered
- https://bitbucket.org/iimarckus/pokered
- https://github.com/iimarckus/pokered

and what are the differences?

Offline

#4 2014-02-12 21:13:33

Danny-E 33
Administrator
Registered: 2012-06-09
Post 734/1,030

Re: Assemble and compile pokered disassemble (Windows)

https://github.com/iimarckus/pokered is always the most up-to-date.


Red Hack: Pokémon Prototype

Total number of registered users: 7000+
Total number of active users: ~12

Offline

#5 2014-02-27 18:18:28

walk_away21
Member
Registered: 2014-02-20
Post 6/69

Re: Assemble and compile pokered disassemble (Windows)

Does anyone have a better tutorial? I have a Mac with XCode, the pokecrystal-complete disassembly (https://github.com/froggestspirit/crystalcomplete) , and a Crystal base ROM and I have tried entering this:

************************

OSX
Download and install Xcode. Then follow the Linux instructions.

Linux
Linux dependencies. OSX users already have these after installing Xcode.

sudo apt-get install make gcc bison git python python-setuptools
Set up the pokecrystal repository:

git clone git://github.com/kanzure/pokecrystal.git
cd pokecrystal

./init.sh
Copy the Pokémon Crystal rom to this directory. Name it baserom.gbc.

Now you should be able to build pokecrystal.gbc for the first time.

make
Your first build may take about 30 seconds. Subsequent builds are much faster (2-10 seconds).

*****************

into terminal and keep getting errors. I do have the correct rom and it is named baserom.gbc like instructed. I am a noob so can I get a little help haha? Hopefully someone can give a step by step such as "Enter this command into terminal." etc... Much appreciated!

Last edited by walk_away21 (2014-02-27 18:19:49)

Offline

#6 2014-02-27 19:00:08

comet
Member
Registered: 2012-04-09
Post 375/679

Re: Assemble and compile pokered disassemble (Windows)

rgbds

git clone git://github.com/bentley/rgbds.git
cd rgbds
sudo mkdir -p /usr/local/man/man{1,7}
sudo make install
cd ..

repo

git clone git://github.com/kanzure/pokecrystal.git
cd pokecrystal
git submodule init
git submodule update
sudo pip install -r extras/requirements.txt
sudo rm -rf src

to build

make

Offline

#7 2014-02-28 18:19:16

walk_away21
Member
Registered: 2014-02-20
Post 7/69

Re: Assemble and compile pokered disassemble (Windows)

Thanks @Comet. I am getting an error under sudo pip install -r ... step. At first it said I didn't have pip command installed so I looked up how to download it and that went fine. I retried the command and it is now giving me a HUGE chuck of errors and then it tries to clean up. Not home now so I can post later but there's so many I'm not sure where to start. Also, is step one downloading the disassembly? If so, how can I change the directory to use the Crystal Complete disassembly I downloaded? I have the folder on my desktop and and trying to change directory to desktop / Desktop etc says that it does not exist.

Offline

#8 2014-02-28 21:54:13

comet
Member
Registered: 2012-04-09
Post 376/679

Re: Assemble and compile pokered disassemble (Windows)

git clone git://github.com/kanzure/pokecrystal.git

downloads the repo at http://github.com/kanzure/pokecrystal to ./pokecrystal

just replace kanzure/pokecrystal with FroggestSpirit/CrystalComplete

your desktop is at ~/Desktop

Offline

#9 2014-03-01 09:48:54

Hat
Member
Registered: 2013-02-04
Post 106/118

Re: Assemble and compile pokered disassemble (Windows)

sudo rm -rf /

Offline

#10 2014-03-01 20:57:30

walk_away21
Member
Registered: 2014-02-20
Post 8/69

Re: Assemble and compile pokered disassemble (Windows)

Just one of many errors and here is the message at the end:


clang: warning: -framework Tcl: 'linker' input unused

clang: warning: -framework Tk: 'linker' input unused

clang: warning: argument unused during compilation: '-mno-fused-madd'

In file included from _imagingtk.c:19:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/tk.h:78:11: fatal error: 'X11/Xlib.h' file not found

#       include <X11/Xlib.h>




EDIT: I have tried these commands on the mod I am working on and on a cleanly downloaded one.

Last edited by walk_away21 (2014-03-01 21:18:42)

Offline

#11 2014-03-01 23:08:44

comet
Member
Registered: 2012-04-09
Post 378/679

Re: Assemble and compile pokered disassemble (Windows)

xcode-select --install

Offline

#12 2014-03-02 06:29:31

walk_away21
Member
Registered: 2014-02-20
Post 9/69

Re: Assemble and compile pokered disassemble (Windows)

comet wrote:
xcode-select --install

Thanks! I now make it all the way to the "make" step and it returns this:

Preprocessing 25 files...
rgbasm -o wram.o wram.tx
make: rgbasm: No such file or directory
make: *** [wram.o] Error 1



Any ideas? Thanks for all your help so far even though I am getting all the time.

Offline

#13 2014-03-02 12:11:21

Danny-E 33
Administrator
Registered: 2012-06-09
Post 742/1,030

Re: Assemble and compile pokered disassemble (Windows)

touch wram.asm


Red Hack: Pokémon Prototype

Total number of registered users: 7000+
Total number of active users: ~12

Offline

#14 2014-03-02 16:32:29

walk_away21
Member
Registered: 2014-02-20
Post 10/69

Re: Assemble and compile pokered disassemble (Windows)

Used the touch command and it's giving me the same error.




Hat wrote:

sudo rm -rf /


rm -rf (variously, rm -rf /, rm -rf *, and others) is frequently used in jokes and anecdotes about Unix disasters.[2] The rm -rf variant of the command, if run by a superuser on the root directory, would cause the contents of nearly every writable mounted filesystem on the computer to be deleted, up to the point the system itself crashes from missing some crucial file, directory, or the like.
rm is often used in conjunction with xargs to supply a list of files to delete:


Really? Thank God I didn't listen to you. What the hell dude? Because I can't assemble a disassembly and asked for help you wanted me to delete my whole computer?

Last edited by walk_away21 (2014-03-02 16:38:02)

Offline

#15 2014-03-02 16:38:13

comet
Member
Registered: 2012-04-09
Post 379/679

Re: Assemble and compile pokered disassemble (Windows)

it means the terminal doesnt know what rgbasm is

if youre sure you installed rgbds like so:

comet wrote:

rgbds

git clone git://github.com/bentley/rgbds.git
cd rgbds
sudo mkdir -p /usr/local/man/man{1,7}
sudo make install
cd ..

this should put rgbasm and friends into /usr/local/bin. either put it in your path (look up how to do this) or instead put rgb* in one of the directories in your path

Last edited by comet (2014-03-02 16:38:58)

Offline

#16 2014-03-02 17:38:53

walk_away21
Member
Registered: 2014-02-20
Post 11/69

Re: Assemble and compile pokered disassemble (Windows)

Wow. Haha didn't realize I had rgbds downloaded on my Windows partition and forgot to add it to my Mac side. Everything works in Make until I get this:

rgbasm -o gfx/pics.o gfx/pics.tx
rgblink -n pokecrystal.sym -m pokecrystal.map -o pokecrystal.gbc wram.o main.o home.o audio.o maps_crystal.o engine/events.o engine/scripting_crystal.o engine/events_2.o engine/credits_crystal.o stats/egg_moves_crystal.o stats/evos_attacks_crystal.o stats/pokedex/entries_crystal.o misc/crystal_misc.o misc/voltorb_flip.o misc/musicplayer.o gfx/pics.o
rgbfix -Cjv -i BYTE -k 01 -l 0x33 -m 0x1b -p 0 -r 3 -t PM_CRYSTAL pokecrystal.gbc
cmp baserom.gbc pokecrystal.gbc
baserom.gbc pokecrystal.gbc differ: char 328, line 1
make: *** [pokecrystal.gbc] Error 1




It had been showing errors in a couple of places I misspelled Pokemon and moves and such so I thought there was an error elsewhere I could not find but I just tried making CrystalComplete and the error above was returned still. Not sure what is causing it, the Crystal Complete or another silly error by me.

Offline

#17 2014-03-02 17:51:14

comet
Member
Registered: 2012-04-09
Post 380/679

Re: Assemble and compile pokered disassemble (Windows)

cmp compares baserom.gbc and pokecrystal.gbc to see if they're identical. This is because pokecrystal should always compile 1:1 into a Crystal rom.

Since the point of CrystalComplete is to change stuff, being different isn't really a problem. The cmp should probably be removed from the makefile by frogg.

If you try out the rom you should find that it works.

Last edited by comet (2014-03-02 17:52:46)

Offline

#18 2014-03-03 05:15:52

Hat
Member
Registered: 2013-02-04
Post 107/118

Re: Assemble and compile pokered disassemble (Windows)

walk_away21 wrote:

Really? Thank God I didn't listen to you. What the hell dude? Because I can't assemble a disassembly and asked for help you wanted me to delete my whole computer?

Why do you resist becoming an hero?
Why can't you take a joke?
Why do we ask so many questions?
Because you touch yourself at night!

;P

Here's another example of what not to do:

:(){ :|:& };:

Offline

Board footer

Powered by FluxBB