• Welcome to Final Fantasy Hacktics. Please login or sign up.
 
April 24, 2024, 01:31:40 pm

News:

Use of ePSXe before 2.0 is highly discouraged. Mednafen, RetroArch, and Duckstation are recommended for playing/testing, pSX is recommended for debugging.


Object reference not set to an instance of an object.

Started by Timbo, October 27, 2014, 12:08:15 pm

Timbo

Object reference not set to an instance of an object. What does this mean?

I started getting this error on my most recent revision of tactext. It doesn't happen on my file from the day before. I've taken it back to that version and started over several times but I can't seem to isolate what is causing this error. I've only changed a handful of things. I've changed two ability descriptions, three job descriptions, four job names, and one ability name. I've tried it on both clean and dirty iso files and I get the problem no matter what. I need some help figuring this out.
  • Modding version: PSX
  • Discord username: Timbo

Xifanie

  • Modding version: PSX
Love what you're seeing? https://supportus.ffhacktics.com/ 💜 it's really appreciated

Anything is possible as long as it is within the hardware's limits. (ie. disc space, RAM, Video RAM, processor, etc.)
<R999> My target market is not FFT mod players
<Raijinili> remember that? it was awful

Timbo

  • Modding version: PSX
  • Discord username: Timbo

Angel

There's also the problem of some versions of Tactext being completely freaking broken. I never remember which versions, but it's kind of like a list of which versions of utorrent are whitelisted on private trackers.
  • Modding version: PSX
* Angel should quit being a lazy bitch
<@Elric> I agree to that as well

nyanyame nyanyajuu nyanyado no nyarabide nyakunyaku inyanyaku nyanyahan nyanyadai nyannyaku nyarabete nyaganyagame
At the end of the day, are we not all trapped inside lemons?

Choto

that's definitely a C# code issue, try another version.

Timbo

I tried both the version in .482 and .478 and neither of them are working for me. Are there any more versions? Is there something else I can do? My patch is kind of dead in the water if I can't fix the text issues.
  • Modding version: PSX
  • Discord username: Timbo

3lric

If you already only have minimal changes, just make a new tactext patch and save after each bit you do to isolate the issue.

A big part of modding is redoing things a hundred or so times, so it might be a good thing to get used to.
  • Modding version: PSX

Timbo

October 28, 2014, 05:07:31 pm #7 Last Edit: October 28, 2014, 06:08:20 pm by Jack of All Trades
So, I'm still patching all of the changes one asset at a time right now but I've isolated at least one instance of the bug. It happens every time I change Elidibs' job name from White Chocobo back to Serpentarius. I'm wondering if I can try to just change his name in Battle.Bin instead of Quick Edit since he only appears in battle wouldn't this be the only place I need to give him a job name? wor

Edit: made some small progress on the bug. I was just now able to blank out the name and patch that. I'm going to try renaming him now and see if that works.

Edit 2: It totally worked. Blanking out and rewriting the ability and Quick Edit totally solved the problem. Now can anybody tell me why that worked?
  • Modding version: PSX
  • Discord username: Timbo

Choto

if anybody could it would be Glain. That exception description "object reference not set..." happens when you try to use an object that you haven't declared or initialized already. You'd have to look at the code to see why it's happening. I haven't so far as opened TacText source code and have no plans to...ever. That shit scary.

Glain

As it happens, I don't really know the science behind Tactext very well; I was able to make some additions/changes to it, but it didn't require understanding why it does all the things it does, or looking into the nuts and bolts of everything going on behind the scenes. 

The null reference exception you got is caused when a null object is dereferenced (an attempt is made to access the state of, or invoke a method on, a null object); I could probably figure out where the error is happening if I ran it in a debugger, but I'd need to be able to reproduce this exact case... and even then I probably wouldn't know why the algorithm is failing, since I'm not familiar with how it works or what it's trying to do.  Honestly, melonhead might be the only one who knows... although I have to wonder if even he would remember at this point.  So there may actually be nobody that knows what's up with Tactext.  \o/
  • Modding version: Other/Unknown

Timbo

I'm just happy that I got past that bug. I don't really need to know the why of it. Thanks for your responses folks. Just having people to turn to when you need help, makes a huge difference.
  • Modding version: PSX
  • Discord username: Timbo