Posts: 2,340
Threads: 78
Joined: Mar 2008
04-02-2015, 04:19 PM
(This post was last modified: 08-01-2015, 01:21 PM by YinYin.)
Visual LF2 Data Changer
So far I've always stuck to a slightly modified version of Jiquera Mondilano's data changer, with the starting popup removed and adding a now outdated link into the unused space at the beginning of every saved .dat file. I've been yearning for something better to work with for a long time. Everything else available has however failed me with its key features/improvements (being inconsistent or crashing). I hope to be doing better on that front, while also aiming for a truly improved work flow instead of feature bloat.
The key feature for now is the frame viewer, which you can toggle in the view menu or with alt+V. It will display the currently selected frame with all its elements. You can zoom inside it with the mouse wheel, pan around by dragging while holding space, adjust all frame elements via click and drag and even the frame center by dragging while holding ctrl (+shift to lock vertical/horizontal axis). Once I have added more editing capabilities it will probably be renamed 'frame editor' and ultimately 'visual editor'.
The text editor itself uses the Fast Colored TextBox by PavelTorgashov. If you have a good reason for me to (visibly) implement any of its features I haven't included yet, let me know.
v1.5
An even smaller update: just a huge improvement in decryption speed as suggested by Nightmarex1337
A smaller update. Mostly allowing you to still edit frame data visually even if there is no picture found. Also working without an lf2.exe to locate bitmaps. And auto indenting and formatting has been improved to better work with single line tags and you can also turn it off in the settings.
v1.4g
g for gad, goes to frames
Download
Full .dat support! Including a crude settings dialogue allowing you to change the font and the 123 characters preceding your saved .dat files. Also custom notifications in case your bitmaps don't show up in the frame viewer and triple undo/redo to skip the line delete/insert steps.
Download
Fixed the bat.dat crash. Added move and resizing controls to bdy and itr areas. I did try my hand at proportional resizing, but I don't think I'm gonna keep trying. Also had a go at encrypting files to add an "enable .dat saving" option to a future settings dialog, but that once again ended up in a big clusterfug - if you are interested in having that any time soon head over to GitHub to download the source and implement it yourself :p. On that note: what kind of settings would you use if any? (custom monospaced font/size/background colors/highlighting?)
Download
Fixed a few possible crashes and weird behaviours. Most notably the frame viewer has expanded controls. You can now directly drag around all w/b/o/cpoints within the frame viewer and navigate frames with up and down arrows. See the spoiler for general/previously implemented features.
Download
While the program can import .dat files with the method Someone else fixed for me, it will for now only save .txt files to prevent you from damaging any original data (LF2 can load .txt files). I may add .dat saving as an option in the future, if I feel enough people have managed to use this without problems.
Download
Download
Credits
Fast Colored TextBox for Syntax Highlighting by Pavel Torgashov https://github.com/PavelTorgashov/FastColoredTextBox
Icons from Jiquera Mondilano's Data Changer http://lf-empire.de/lf2-empire/data-chan...ta-changer
Data decryption method by Someone else http://www.lf-empire.de/forum/showthread...#pid191628
Thanks given by: Gespenst , STM1993 , Bamboori , Ariel , LutiChris , prince_freeza , Dr. Time , Deep , Archer-Dante , Apocalipsis , bashscrazy , Hate , T.O.R.N.A.D.O , Rhino.Freak , Siegvar , Ariyan , filiop , Whaat , NewToTheEra , FerZ
Posts: 864
Threads: 49
Joined: Mar 2008
04-02-2015, 04:32 PM
(This post was last modified: 11-12-2016, 07:21 PM by STM1993.)
Important Controls/Settings:
1. Edit -> Settings -> uncheck "auto indent everything" if you don't like how it automatically reformats your text.
2. Alt+V to view the frame.
3. Select the viewer. Hold [SPACE] & drag to shift your perspective.
4. Select the viewer. Hold [CTRL] & drag to adjust the sprite around the shadow (
centerx: and centery: ).
5. [Mouse Wheel] to zoom in/out.
That's all you really need to know.
Legend:
Blue rectangle = Bdy
Red rectangle = Itr
Green square = Wpoint
Blue square = Opoint
Red square = Bpoint
This is a godsend! Now I don't have to be super precisely measure individual pixels anymore!
Only downsides I've found so far for the Alt+V viewing:
1) Can't see a grid to box up the individual sprite, which would make coordinate-finding even easier since I no longer need to refer to the sprite file itself to know where the top left corner is.
2) Can zoom in on the picture, but it always zoom towards a specific point and I cannot drag around the sprite. I have to alter the window size instead.
3) Minor point: would be nice if you can activate another grid for individual pixels.
#2: This is zoomed in. I want to be able to see the head too, but I can't drag the image down or use arrow keys to see the head. Did I miss anything?
hehe, Jason.
Thanks given by:
Posts: 1,556
Threads: 77
Joined: May 2011
(04-02-2015, 04:19 PM)YinYin Wrote: While the program can import .dat files with the method Someone else fixed for me, it will for now only save .txt files to prevent you from damaging any original data (LF2 can load .txt files). I may add .dat saving as an option in the future, if I feel enough people have managed to use this without problems. This is pointless. Doesn't this mean I will have to change the names of my .dat files in data.txt to end with .txt instead? While it might be good to have a backup, it would only work the first time you save it, and then you'd have to open your newdat.txt and the backup "feature" is gone. It also means that I can't assign the program as my default editor for my new data files since they're .txt now, and I do want to have a datachanger open my .txts for me.
Thanks given by:
Posts: 2,340
Threads: 78
Joined: Mar 2008
(04-02-2015, 04:32 PM)STM1993 Wrote: 1) Can't see a grid to box up the individual sprite, which would make coordinate-finding even easier since I no longer need to refer to the sprite file itself to know where the top left corner is.
3) Minor point: would be nice if you can activate another grid for individual pixels. I can see how this would be useful right now. Once you can drag around every element within the visual window I see little point to seeing a pixel grid though. I'll give it some more thought, but other things have priority. (04-02-2015, 04:32 PM)STM1993 Wrote: 2) Can zoom in on the picture, but it always zoom towards a specific point and I cannot drag around the sprite. I have to alter the window size instead.
#2: This is zoomed in. I want to be able to see the head too, but I can't drag the image down or use arrow keys to see the head. Did I miss anything? Hold space and click+drag to pan around. (04-02-2015, 04:54 PM)Doctor A Wrote: (04-02-2015, 04:19 PM)YinYin Wrote: While the program can import .dat files with the method Someone else fixed for me, it will for now only save .txt files to prevent you from damaging any original data (LF2 can load .txt files). I may add .dat saving as an option in the future, if I feel enough people have managed to use this without problems. This is pointless. Doesn't this mean I will have to change the names of my .dat files in data.txt to end with .txt instead? While it might be good to have a backup, it would only work the first time you save it, and then you'd have to open your newdat.txt and the backup "feature" is gone. It also means that I can't assign the program as my default editor for my new data files since they're .txt now, and I do want to have a datachanger open my .txts for me. Yes, but it's not pointless. The editor can natively import/open .dat files. The point is you cannot save over .dat files so you cannot damage them. Everything you work with in .txt format and this editor is obviously in danger of being scrambled by whatever naive programming mistakes I made (happened to me once on another editor - never using new tools without backups again).
I know directly assigning this is useful, and you can assign this editor to .dat files. For .txt files just drag them onto the program to quickly access them for now. I want enough people to properly test this before diving 100% into using it all the time.
Other than that the encryption also seems pointless to me and I'd love to fly without whenever I can. A unique file type is another thing, sadly LF2 seems to only load either .txt or .dat.
In short: please try to crash it, break it, make it fail at any task you can think of throwing at it. And report back with detail.
Thanks given by:
Posts: 2,657
Threads: 113
Joined: Mar 2008
couldnt you make the txt documents just use a different file ending?
amazing work btw, until now ive always used te visual frame maker + jiqueras dc
Posts: 337
Threads: 26
Joined: Jan 2015
this Data changer!
How do u guys open Pics By this Dc engine.
I Have tried But couldn't open the images.
New Member Just Joined "2017"
Thanks given by:
Posts: 2,340
Threads: 78
Joined: Mar 2008
04-08-2015, 03:59 PM
(This post was last modified: 04-08-2015, 04:00 PM by YinYin.)
Updated to v1.1
(04-02-2015, 11:33 PM)Bamboori Wrote: couldnt you make the txt documents just use a different file ending? You can do that. Assign the program to a custom filetype of your choice and open/save these like any other txt file. Vanilla LF2 won't be able to load them though.
(04-08-2015, 01:03 PM)DARK-EVIL Wrote: How do u guys open Pics By this Dc engine.
I Have tried But couldn't open the images. This program is not made for opening images.
It will instead retrieve the bitmaps noted in the <bmp_begin> of a data file if everything is in the same or sub folder of an lf2.exe to display them inside the frame viewer (Alt+V).
Thanks given by:
Posts: 69
Threads: 2
Joined: Oct 2014
Nice work!
Hope it's lightweight enough
Thanks given by:
Posts: 337
Threads: 26
Joined: Jan 2015
thanks.Its worked,
So can u tell me what this Viewing bmp pic Can hel me While DChanging A Character.
New Member Just Joined "2017"
Thanks given by:
Posts: 223
Threads: 19
Joined: Mar 2013
Its re-directing me to the same page again and again after clicking Authorize Download.
" LF2 Against The Evils", my first LF2 video series.
Check my channel :-
Litte Fighter Videos <-- This is a link! Click This!
Thanks given by:
|