找回密码
 点一下
查看: 3235|回复: 3

Wc3mapoptimizer 4.8

[复制链接]
发表于 2009-4-29 18:05:15 | 显示全部楼层 |阅读模式
突然发现这个优化器更新了,有没有人翻译下更新内容呢


Version History:

4.8:
- Better number literal optimization may reduce filesize slightly better than the previous version.
- The optimizer is now more agressive when adding safety !=null stuff to prevent the IsUnitType bug. This might increment some maps' bits after optimizing but will greatly reduce the risk of this problem (in fact, it might actually stop happening).
- The Enforce IsUnitType safety tweak is not ignored anymore, ironically, due to the above change it may not be necessary anymore.
- Fixed "init function merge" causing compile errors if there was a function with only local variables.

4.7c:
  - Fixed a major bug with init Merge on certain maps doing more than usual inside InitTrig.
  - The tweaks "Disable:" frame now says "Avoid: (Check to disable)".


4.7b:
  - Fixed a major bug with EnumDestructablesInCircleBJ and BJ optimize, often reported as "compress map names makes my map lag like hell"
  - Fixed a minor memory leak possibility in replacement for EnumDestructablesInCircleBJ.
  - Fixed readme bugs.

4.7:
  - Fixed a memory leak and probable crash with a mpq-file-reading function.
  - Fixed a bug that could come in Merge Init functions in certain maps that were compiled using jasshelper's inline optimizations.
  - The [Merge Init functions] should be more effective and able to avoid more problems.
  - Maps using TriggerRegisterVariableEvent will automatically get an all caps charmap for name compression.
  - Command line gibberish.

4.6
  - Bugfix: Constant variable inlining conflicting with local declarations using the same variable name.
  - Bugfix: Unfortunate constant variable double inline (constant integer A=1, constant integer B=A, set x=B).
  - Feature: Compress map names uses real variable protection automatically if it finds a call to TriggerRegisterVariableEvent.

4.5:
  - Can save tweaks once again.
  - Fixed another bug with the BJ optimization in some maps that used EnumDestructablesInCircleBJ.

4.4:
  - Fixed issues with strings that contained the number 5.
  - Fixed a dangerous bug with the BJ optimization in some maps that used EnumDestructablesInCircleBJ.
  - Added a tweak to turn rawcodes into numbers.

4.3:
- Fixed an issue with strings in the script that were formed of digits or _, again.
- Fixed an issue with the optimizer replacing \\ with \" (or viceversa) in strings.
- Fixed a bug regarding possible malfunction after inlining real constants that did not specify a real initial value.

4.2:
- Fixed an issue with strings in the script that were formed of digits or _
- Fixed jass compile error in maps that used EnumDestructablesInCircleBJ

4.1:
- Readme updated
- Changed the interface a lot.
- Fixed a bug with 'Compress names' a.k.a "Shortest names as possible" that was potentially dangerous for scripts with a lot of globals. (A LOT of globals)
- Fixed a bug with the globals merger that could have arised issues with global variables with initialized values.
- "Compress names" will now automatically use an upper case charmap
- Added tweaks dialog containing the usual things to disable certain methods or to allow some of the formerly known as "non-recommendable" checkboxes.
- Improved size reduction for basic obfuscation on certain specific cases.

4.0 :
- Kind of updates in the readme.
- Added "Inline constant globals" method.
- "Look for other scripts to obfuscate" renamed to "Other scripts opt"
- "Other scripts opt" can now optimize .pld files as well.
- Added option to remove extra .j files found in the map.
- "Make sure to clean every unused function/variable" renamed to "Recursive cleaning"
- No longer has a chance to add 3 utf8 characters at the top of the map's script.

3.9d :
- Improved the loading time of external list files, it will also not freeze the PC when the listfile is really big.
- Fixed various bugs with gamecache function optimization.


3.9c :
- Fixed a bug with Anti BJ that replaced GetAbilityEffectBJ and GetAbilitySoundBJ incorrectly.
- Fixed a bug with remove useless code that had a chance to cause bugs if a typical gamecache
   init function was called without using it as an expression but with the call statement
- Removed some '}' debug messages.
- Fixed a graphical glitch.

3.9b :
- Fixed a bug with Safe IsUnitType not working correctly sometimes and making the map fail.
- Fixed a bug with 'Remove editor suffixes' it had a chance to make an ability malfunction If its only modified field was
   the editor suffix
- Improved the 3.9 feature of optimizing gamecache functions a little.
- Checked state of 'Not recommended' options will no longer get loaded.
- It will always save a script file with the same name as the target map but will end with .j that will
   show the resulting script used by the map. This will save some time to the guys that like to check the
   resulting script file after optimizing.
- 'Remove useless code' now removes some dummy order commands generated by the world editor in the preplaced
   unit creation area

wc3mapoptimizer4.8.rar

363 KB, 下载次数: 129

英文原版

 楼主| 发表于 2009-4-29 18:12:11 | 显示全部楼层
顺便放个JassHelper 0.9.G.1

jasshelper0.9.G.1.rar

764 KB, 下载次数: 29

英文原版

回复

使用道具 举报

发表于 2009-5-3 21:28:08 | 显示全部楼层
4.8把数字优化了 16进制。。
$174
而不是0x174
这个pjass都不通过。。原版WE通过。。

据说那样计算量会比0x或者直接10进制大
回复

使用道具 举报

发表于 2009-7-17 14:21:54 | 显示全部楼层
LS囧...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-11-23 16:18 , Processed in 0.088979 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表