LoginLogin
Might make SBS readonly: thread

Subprogram PRGINS issue

Root / Programming Questions / [.]

kitesinpowerlinesCreated:
Hello! I am creating a map editor that sorts tiles into tile sets, which makes finding the right tiles easier. In this program, there is also a function to create and load your own tile sets. The map editor and all its functions work without error when running as a main program; however, my intention is to use it as a subprogram but it fails. The “save” action of the tile set creator function behaves oddly. It is difficult to troubleshoot because it either:
  • Fails the label check and at “0”
  • Somehow retains all the data I’ve previously fed it in prior tests and exports it all instead of just the 220 lines I’m asking for The result of the save function when used as a subprogram is that it writes different labels with different data underneath and also writes some same-named labels which produces a duplicate label error when executing. Additional context, I always clear PRG3 and delete the “custom_tilesets” file when starting a new test. Why does the subprogram handle this function differently than it would as a man program? Screenshot of the problem code because I’m lazy (also, ignore the label name consistency error, this is already fixed):

  • Can you upload a key? You can submit them as "private" so they don't show up in the download browser. I'm not sure where the problem is.

    It’s under review right now, but I’ll post the key when it is available.

    I finally got a key (took longer than I thought it would). 4R3MQA3JJ. Please keep in mind this is still a work in progress. There are other bugs in this version that have already been corrected. The error I described above is the only one I’m still struggling with. To replicate the error, set the file “Blue2” as a subprogram. Launch tve subprogram and click the folder icon then the + icon. Add tiles to your tile set. I believe it fails on the second set you add, which means repeating this process 2x.