Qbazzz
Pół człowiek, pół litra
TUTORIAL
How to manually compile Object Builder on Windows
How to manually compile Object Builder on Windows
Hello there OTLand!
Due to many years and endless queries and guesswork about "How to Compile Object Builder" because official compiling tutorial on GitHub link is not active anymore, here I come!
In this Tutorial i will show you how-to compile Object Builder using Flash Develop and Air SDK for Flex Developers.
Please read & follow steps in this tutorial carefully!
Please read & follow steps in this tutorial carefully!
Requirements (you need to download those files in order to start tutorial and compile Object Builder):
- Apache Flex SDK Installer 3.3.2 [DOWNLOAD]
- Air SDK for Flex Developers for Windows [DOWNLOAD]
- FlashDevelop 5.3.3 [DOWNLOAD]
Steps to compile Object Builder :
1 ) Run and install Apache-Flex-SDK-Installer-3.3.2-bin (remember that this is only installer so install it whenever you want)
2 ) Run the Installer, choose directory(!) to install SDK files and select Options (SCREEN) :
3 ) When you see "Downloading 2.2 zip from (...)" window (SCREEN) that's mean the SDK it's installed and you can 'Close' installer.
- Select Flex version : Apache Flex SDK 4.16.1
- Select AIR version : AIR 32.0
- Select Flash Player version : Flash Player 32.0
4 ) Download and extract AIRSDK_Flex_Windows to the directory where you installed SDK(!) (previous step)
5 ) Download & Install FlashDevelop 5.3.3 (it's an "overlay / UI" for SDK)
6 ) Now, run Flash Develop, click "Import a Flash Builder project" and choose ".actionScriptProperties" file from Object Builder source. (SCREEN)
7 ) In your Object Builder project (left side of Flash Develop window) you see ObjectBuilder (AS3) click with right mouse button, select: "Properties" (SCREEN)
8 ) Go to the "SDK" Tab then in "Installed SDK(s)" click "Manage.." (SCREEN)
9 ) Now you should see Plugins Window, go to the left panel to "Plugins", choose "AS3Context" and then in "Installed Flex SDKs InstalledSDK[] Array" click "...", now you should see "InstalledSDK Collection Editor" (or something like that, i have polish windows so stfu and go ahead!) (SCREEN)
10 ) Click "Add" in left down corner and then choose path to your installed SDK then click OK, Close. (SCREEN)
11 ) Now select this SDK that u added in previous step as default in "Installed SDK(s)"
12 ) In (SCREEN) Compiler Options (ObjectBuilder (AS3) -> right mouse button -> Properties) in Additional Compiler Options change Tab [1] from
to:-source-path=../locale/{locale}
-source-path=locale/{locale}
Now it's time to do a little trick edit to remove errors due to lack of Apache ANT software (if someone know how to do it, please post it), but let's go in our way, so..
13 ) Go to your SDK folder : "sdk/frameworks/" and replace in air-config.xml : "{airHome}" (line: 63 and 83) for your SDK directory (example: G:/Apache Flex/sdk)
14 ) Now, go to the ObjectBuilder Source folder and edit : "src/ob/components/SplashScreen.mxml" in line 59 you should replace "../" with path to your ObjectBuilder source folder. (example: "G:/ObjectBuilderSource/")
15 ) Now, go to the ObjectBuilder Source folder and edit : "src/Workers.as" in line 44 you should replace "../" with path to your ObjectBuilder source folder. Same as you done in previous step.
16 ) Now, you need to create folder named: "workerswfs" in main source folder of ObjectBuilder (G:/ObjectBuilderSource/workerswfs)
Now it's time to compile this beast!
17 ) In FlashDevelop in project explorer ObjectBuilder(AS3), right-mouse-click "ObjectBuilderWorker.as" and click "Set Document Class" and click Build Project (F8) (in FlashDevelop you need to do this to compile selected file, because it's not compiling entire project, you need to select what you want to "compile")
18 ) If the build of ObjectBuilderWorker.as is done, you need to move and rename file from: ObjectBuilder/bin/ObjectBuilder.swf to: ObjectBuilder/workerswfs/ObjectBuilderWorker.swf
19 ) In FlashDevelop in project explorer ObjectBuilder(AS3), right-mouse-click "ObjectBuilder.mxml" and click "Set Document Class" and click Build Project (F8)
20 ) Copy ObjectBuilder/src/icon entire folder to ObjectBuilder/bin
21 ) Now move yourself to "ObjectBuilderSource/bat/" and you should see few .bat files.
Let me explain IMPORTANT ones:
CreateCertificate.bat - This one is to generate digital certificate to pack ObjectBuilder installer;PackageApp.bat - Creates installer of ObjectBuilder in ObjectBuilderSource/air/
RunApp.bat - With this .bat you can directly launch your fresh compiled ObjectBuilder for testing purposes without making installer;
After following all of those 21 steps and had compiled ObjectBuilder and ObjectBuilderWorker,
first you must run CreateCertificate.bat then you can run RunApp.bat for yourself or PackageApp.bat to create installer of compiled ObjectBuilder to share with someone.
first you must run CreateCertificate.bat then you can run RunApp.bat for yourself or PackageApp.bat to create installer of compiled ObjectBuilder to share with someone.
Hope you did it! That's pretty much all. Thanks @Fresh for sub-edit of the tutorial.
If you have any questions / troubles, feel free to post it in this thread.
PS.
In exchange of this tutorial if someone can share Object Builder's Sources with "Frame Groups" to Outfits (Tibia >= 10.57) ready-to-use I will be very glad.
Have a nice day!