ROM Hack People needed

  • Thread starter Thread starter Trylk248
  • Start date Start date
  • Views Views 4,121
  • Replies Replies 40

Do you want the project to have it's Source Code?


  • Total voters
    7
  • Poll closed .
What other programming languages will be used? You only specified 1 programmer.
We will use Python as the main code, other programmig langages like Javascript, HTML, C, C+, C++ will be used as "modules" in the script so we will be able to use every language's unique capabilities and expand a bit further the options available to us rathernthan using one single programmig language.
 
Last edited by Trylk248,
We will use Python as the main code, other programmig langages like Javascript, HTML, C, C+, C++ will be used as "modules" in the script so we will be able to use every language's unique capabilities and expand a bit further the options available to us rathernthan using one single programmig language.
You're in over your head. For one, "HTML" is a markup language, not a programming language; and two, "C+" isn't a thing.

You need to get a basic prototype done with a stable foundation first before thinking of adding any extras like this. Language bindings can be added later.
 
You're in over your head. For one, "HTML" is a markup language, not a programming language; and two, "C+" isn't a thing.

You need to get a basic prototype done with a stable foundation first before thinking of adding any extras like this. Language bindings can be added later.

From what I am understanding, the plan is a Python backend and a Java front-end. It would likely be easier if 1 language was chosen, but that isn't my choice to make.
 
Last edited by Somebody Whoisbored,
Wrote code to easily write to files. Just pass a file in the constructor and write what you want. Call save()
at the end or it won't save
Code:
package com.shadowninja108.util;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.ArrayList;
import java.util.Iterator;

public class RawFileEditor {
    private RandomAccessFile file;

    ArrayList<FileModification> modifications;

    public RawFileEditor(File file) {
        try {
            this.file = new RandomAccessFile(file, "rw");
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        modifications = new ArrayList<>();
    }

    /**
     * Add a modification to queue.
     *
     * @param location
     *            where to modify the file
     * @param bytes
     *            what to overwrite in the file
     */
    public void write(long location, byte[] bytes) {
        modifications.add(new FileModification(location, bytes));
    }

    /**
     * Write all stored modifications to file. This also clears the modification
     * storage. Safe to call if empty.
     *
     */
    public void save() {
        try {
            Iterator<FileModification> it = modifications.iterator();
            while (it.hasNext()) {
                FileModification next = it.next();
                if ((next.location + next.bytes.length) < file.length()) {
                    file.seek(next.location);
                    file.write(next.bytes);
                    System.out.println("Wrote " + next.bytes.length + " bytes at " + next.location);
                } else
                    System.out.println("Attempted to write outside file!");
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
        modifications.clear();
    }

    public class FileModification {
        public long location;
        public byte[] bytes;

        public FileModification(long location, byte[] bytes) {
            this.location = location;
            this.bytes = bytes;
        }
    }
}

Usage example:
Code:
RawFileEditor writer = new RawFileEditor(new File("B:\\Documents\\woahhhhh.txt"));
writer.write(7, "swoos".getBytes());
writer.write(16, "nuiawhd".getBytes());
writer.save();
 
Last edited by Somebody Whoisbored,
  • Like
Reactions: Trylk248
Quick update !

Talking about HexTweaking, I believe these codes from Gateshark are the same ones as in the savegame but they are part of it.
Code:
Code:
[Money 77777]
60392E74 00000000
B0392E74 00000000
60000018 00000000
B0000018 00000000
B00001F4 00000000
B0000058 00000000
B0000004 00000000
300000A0 00012FD1
000000A0 00012FD1
D0000000 00000000

[Exist Item 77]
60392E74 00000000
B0392E74 00000000
60000018 00000000
B0000018 00000000
B00001F4 00000000
B0000058 00000000
B0000004 00000000
C0000000 00000162
A00000A4 FF000000
200000A4 0000004D
D0000000 00000000
DC000000 00000001
D2000000 00000000

[(SELECT+UP)All Item 77 (SELECT+DOWN)Clear All Item]
60392E74 00000000
B0392E74 00000000
60000018 00000000
B0000018 00000000
B00001F4 00000000
B0000058 00000000
B0000004 00000000
DD000000 00000044
C0000000 00000162
200000A4 0000004D
DC000000 00000001
D1000000 00000000
D0000000 00000000
DD000000 00000084
C0000000 00000162
200000A4 00000000
DC000000 00000001
D2000000 00000000
 
We will use Python as the main code, other programmig langages like Javascript, HTML, C, C+, C++ will be used as "modules" in the script so we will be able to use every language's unique capabilities and expand a bit further the options available to us rathernthan using one single programmig language.
I'm not a programmer, but i don't think it works like that.
I would help you if i knew how to code.
 
Last edited by dAVID_,
  • Like
Reactions: Trylk248
:: Project canceled ::
This project is no longer being developped. Sorry for the inconveniance.
But was it even started to begin with?
And honestly the best way to get something started, is to do it yourself. Otherwise why would anyone want to start project for you? If I knew how to make a save editor for this game, I would make one, myself, with my own thread, crediting myself.
 

Site & Scene News

Popular threads in this forum