jacob1
55b31d6f0e
my mod uses -1 for this
2017-08-05 21:47:39 -04:00
jacob1
6efedcdd33
undo authors changes on ctrl+z, prevent excessive nesting
2017-07-15 16:21:16 -04:00
jacob1
8e5b0c760e
Add logging inside saves which remembers which other saves material was taken from
...
The logging is saved inside the bson data in all online saves, local saves, stamps, and clipboard pieces. It is loaded back when reloading each of those.
See #474 for the format of the data. It is the same format for the bson data. Note that "links" is an array of objects. It can be recursive.
There is some effort to not duplicate information, we don't care if you loaded a stamp 10 times or if you are using the clipboard in your own save. Extra information is mostly not saved for your own stuff, only when you take material from other saves.
Press ctrl+a in debug builds to show what info it is currently saving in Client. Also enabled in snapshots for now.
There is one unrelated change in here, which fixes a crash pointed out by QuanTech. It was also save related and it was too close to the other changes to separate it into another commit. It fixes a crash when saving signs with invalid unicode. the BSON library doesn't like this, it was returning an error but we ignored it, which caused a crash. It now notices those errors. I also had to update several Serialize calls to check if it actually returned save data, or else it then would have started crashing there instead.
Also some debug prints were removed
2017-07-13 00:19:35 -04:00
jacob1
714ee8ff65
clear redoHistory memory on exit
2017-06-14 00:16:44 -04:00
jacob1
6d6a615a37
msvc min/max fixes
2017-04-23 12:30:39 -04:00
Mark Theng
1c12d1ec16
Take history snapshot before setting save ( #358 )
2017-03-19 23:15:08 -04:00
jacob1
08a7dfebea
move undohistorylimit config pref, change default to 5
2017-02-18 23:58:14 -05:00
jacob1
6040ccd27e
ugly fix for two empty snapshots being created on startup
2017-02-09 23:08:44 -05:00
jacob1
389159728c
Configurable undo history
...
Note: Each undo adds 16.7 MB of RAM usage, max is 200 (3.4GB), but don't set it to this
2016-11-14 10:03:09 -05:00
jacob1
25a2d9b5b5
some modifications to ctrl+z/ctrl+y
...
allows infinite undoing / redoing, improvements when history limit is greater than one
2016-11-14 10:03:09 -05:00
krawthekrow
95d2014724
allow redo with Ctrl-Y
2016-11-14 10:03:08 -05:00
jacob1
8a130aaab4
add log message when particle debugging is advanced due to unpause
2016-09-04 21:42:48 -04:00
Mark Theng
8de12d616e
fix resume simulation/reload in the middle of subframe debugging ( #330 )
2016-09-04 21:33:33 -04:00
jacob1
adb200d3f7
remove commented out code, heart icon shows even when element is selected
2016-07-24 22:43:54 -04:00
jacob1
ae247a2d2b
Fix uglyness with how Favorites menu was done
2016-07-24 22:30:56 -04:00
jacob1
fe4653c30e
Fix crash when BuildMenus() is run with elements in the favorites menu
2016-07-24 17:30:00 -04:00
jacob1
b75c8318e4
add tpt.num_menus and tpt.menu_enabled functions
2016-07-08 20:33:01 -04:00
jacob1
88097496af
Allow hiding menusections
...
Cherry-picked from 75437c7d4c
2016-07-08 19:58:21 -04:00
jacob1
ecddfcbc0d
don't reset edge mode when saving local saves
2016-06-30 08:16:53 -04:00
jacob1
4190946de5
fix warning+exit crash, fix menusection offset resetting when menus are rebuilt
2016-06-25 11:56:03 -04:00
Matthew Miller
083d488566
Added a favorites menu. ( #298 )
...
Added a favorites menu.
2016-06-25 11:55:18 -04:00
jacob1
51ff868935
use user-set edge mode when saving powder.pref, not the one from the open save
2016-04-02 00:25:05 -04:00
jacob1
5c1cc0c0fb
rewrite powder.pref handling to use jsoncpp instead of cajun
...
cajun is a hard to use library with many necessary features missing. It also has been causing the windows version, and probably the mac version, to randomly crash.
Other json stuff still uses cajun (TODO: remove)
2016-01-25 22:30:43 -05:00
jacob1
d3c44dbffa
fix deco color being reset to 0x00000000 when loading a lua element
2016-01-10 22:48:45 -05:00
jacob1
f435cf3881
fix edge mode not loading properly in saves, options menu uses edge mode from Simulation and not GameModel
2015-10-10 18:10:17 -04:00
jacob1
a0c77fe6e8
fix it being impossible to select wall menu, add wall identifiers from my mod
2015-09-24 00:26:37 -04:00
jacob1
df854f72a6
only print 'Loaded autorun.lua' to screen (not to console/stdout.txt)
...
All the other debug output was already removed in earlier commits
2015-08-31 23:51:50 -04:00
jacob1
ed4678c9a8
add deco flood fill, flood fills based on color being close enough
...
flood fill brush is hidden when deco tools are selected like this because it gets in the way. Renderer::vid is compared here so there could definitely be issues, but it works fine when used under normal conditions
2015-08-30 01:38:32 -04:00
Ryan Jacobs
55a30673c4
Remove unnecessary pointer checks.
...
There are *no* more spacing issues. I used tabs exclusively.
Also, I made changes off of the develop branch.
Here's the Ruby regex that I used:
text.gsub!(/(( |\t)*)if ?\((.*)\) ?{?\n?( |\t)*(free ?\(|delete |delete\[\] )(.*)\)?;/, "\\1\\5\\6;")
2015-02-14 22:13:26 -08:00
jacob1
efd69b208d
fix a ton more errors in the interface code, including all the -Wreorder ones
2015-01-16 19:58:39 -05:00
jacob1
e92bbac700
fix some lua crashes (use more argument checking)
2015-01-10 18:59:20 -05:00
jacob1
1a2e3a11fc
cancel drawing when the mouse moves in / out of the zoom window, fixes #228
2015-01-10 13:35:23 -05:00
jacob1
35782fdd10
'l' always loads last save from disk (won't load cached deleted save)
2014-12-15 15:13:37 -05:00
jacob1
16ce3a68c0
more jacksonmj suggestions: save edgeMode in saves, BVBR absorption fix, life saving fix, DEUT graphics change, PROT fix, SOAP graphics fix
2014-11-21 15:41:22 -05:00
jacob1
efaa32363f
page textbox in browser (go to any page)
...
also fix page count (add one for front page), and make page count invisible until the saves actually load
2014-11-11 17:25:50 -05:00
jacob1
c16caed5dd
fix level 1 msvc compiling warnings + initialize debugFlags
2014-10-08 00:15:51 -04:00
jacob1
c44e734abe
fix crashes when the selected element is NULL (via lua), add gfx.getHexColor (inverse of gfx.getColors)
2014-06-09 17:42:44 -04:00
jacob1
ec29044ce6
output log (console) messages to the console, or stdout.txt on windows
2014-06-09 16:23:18 -04:00
jacob1
0409d93789
signs can be moved onto the zoom window, fixes #89
2014-01-17 23:27:57 -05:00
mniip
bf908bbfbf
Fix various warnings, remove silly useless NO_INLINE system, remove the need for -fkeep-inline-functions
2013-10-30 04:47:07 +04:00
jacob1
f56a2f6000
add back replace mode and specific delete. Activated with insert key / delete key, use ctrl+alt click to select what to use for the checks
2013-07-18 15:40:32 -04:00
jacob1
a98fb2092d
click a preset once to select it, twice to switch to deco set tool. Prevent changing middle selected element in the deco editor
2013-07-17 17:21:35 -04:00
jacob1
4243987acd
black decoration preset, improve look of deco buttons a little
2013-07-17 16:53:14 -04:00
jacob1
6f29926b96
deco menu button textures (not black)
2013-07-16 13:08:57 -04:00
jacob1
5773e6afb5
fix multiple deco presets being able to be selected at once, fix "Decorations: Enable" coming up every time you open the deco editor, presets deselected when you leave editor
2013-07-16 11:24:11 -04:00
jacob1
519d220101
save more settings in powder.pref like ngrav_enable, aheat_enable, pretty powders, and debug hud. Also save ambient heat in saves, and add a warning in the intro text in betas that you can't save publically
2013-07-02 15:09:00 -04:00
jacob1
76ce2de1ce
change some wall descriptions a little
2013-06-23 20:40:19 -04:00
jacob1
e146ae50ab
some minor changes to tools
2013-06-06 23:28:07 -04:00
jacob1
b16524292e
fix bug where you had to start using a tool before setting it's strength
2013-05-31 19:53:32 -04:00
jacob1
7b6ded50dc
rename GRAV back to PGRV, fix formatting in generator, remove useless file
2013-05-16 20:04:39 -04:00