Author Topic: Temporal Flux Plugins  (Read 572 times)

Mauron

  • Guru of Reason
  • Dimension Crosser (+1000)
  • *
  • Posts: 1239
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Temporal Flux Plugins
« Reply #15 on: September 13, 2018, 05:47:50 pm »
Quote
Upon loading Temporal Flux (during the TileEditor_plugins Constructor()), load the check _ifHasBeenModified, (display a 'warning msg box' since the tile editor has been loaded with a ROM that hasn't been 'fitted' yet). I can't imagine someone trying to load plugins after loading a ROM so this would be done at ROM load.

A check at ROM load isn't necessary. At ROM load, Temporal Flux loads all tile graphics from the ROM for the tileset editor. The decompressed data held by Temporal Flux is inaccessible to plugins, so a plugin would need to create a separate copy of of the decompressed data, and write the plugin's copy back to the ROM on save, which would not be shown in the map editor until a second ROM load.

That Plugin Architecture is what I reference for my plugins.

Quote
How can we make (easier) new plugins for ourselves?
For instances make a button that changes every Death Peak Music Track (to Singing Mountain), and edit/update the event files to use Singing Mountain rather than Silent Light. (ie. edit a string of commands and events files in Temporal Flux in one file or button.

A music change plugin like that would be difficult to create. Plugins can't access the loaded event data, which makes things difficult to mess with.

Zakyrus

  • Architect of Kajar
  • Dimension Crosser (+1000)
  • *
  • Posts: 1129
    • View Profile
Re: Temporal Flux Plugins
« Reply #16 on: September 14, 2018, 02:02:04 am »
A music change plugin like that would be difficult to create. Plugins can't access the loaded event data, which makes things difficult to mess with.

I'm saying, take a macro list of .exported TF changes, and have a .script file, store/save/load that macro list and apply (changes in the macro list) yeah yeah, its just like ips. but at a different level.

~Z

Mauron

  • Guru of Reason
  • Dimension Crosser (+1000)
  • *
  • Posts: 1239
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Temporal Flux Plugins
« Reply #17 on: September 14, 2018, 03:27:22 am »
I suppose I could make a tool to parse multiple .Flux files with event code, and make one batch change, but it seems like it would be of little benefit. Doing a find in files from exported location events, then making the necessary changes in Temporal Flux would probably be easier.

Zakyrus

  • Architect of Kajar
  • Dimension Crosser (+1000)
  • *
  • Posts: 1129
    • View Profile
Re: Temporal Flux Plugins
« Reply #18 on: October 03, 2018, 07:25:49 pm »
I suppose I could make a tool to parse multiple .Flux files with event code, and make one batch change, but it seems like it would be of little benefit. Doing a find in files from exported location events, then making the necessary changes in Temporal Flux would probably be easier.
[/quote

Hmmm... at this point, I'm saying 'go for it!' the more tools the merrier.

~X