Majesty Gold HD

Majesty Gold HD

Customize Majesty!
Create and upload new Quests and Mods for Majesty HD!
Code's not executing
I can't find out why the code is not executing. I fixed the compilation errors, but all that comes out is bytecode.bcd, a few other bytecode files in MX data. No GreatMission.bcd. I tried inputting all the bytecodes, Xmls, as well as the GreatMission.gpl into the rgs editor, but it still didn't work. What did I do wrong?
< >
Showing 1-3 of 3 comments
Dracoceros 11 1 Sep, 2019 @ 4:13pm 
Hey, so, I have the inittialization function as the SAME name as the function in the great mission script (Function GreatMission; Initialization Function Name: GreatMission)

I put each bcd file into the RGSEditor, as well as the corresponding GreatMission.gpl files into each of them (bytecode.bcd recieved GPL's GreatMission.gpl, all the other ones received GPLMx GreatMission.gpl). Code's still not executing. Will upload the newest version for someone to check.
Last edited by Dracoceros; 5 Sep, 2019 @ 4:44pm
Dracoceros 11 5 Sep, 2019 @ 4:48pm 
Ok, this is obviously the fault of programming and lack of knowledge with the MAKEGPL.bat file. It's still a lack of knowledge. There is a user here who made the Tower Defense who supplied an ALTERED MakeGPL bat file, which allowed the code to be inputted from DAT and GPL files, and output to a specified bcd file. However, his code only works with the "Majesty Original" version of the game, NOT the "Majesty Expansion" version of the game. If anyone knows where I can find a majesty expansion compatible MakeGPL.bat that can compile quest data and gpl, this may solve and close the case.
VikesRule 40 25 Mar, 2020 @ 4:43pm 
Not sure if you still are having this issue, but the MakeGPL.bat file is fairly straightforward.

The only things you need to edit are:

1) OUTPUTNAME=TTS.bcd (change to what you want the BCD file to be called)
2) GPLPROJECTFILE=TTS_path.gplproj (change to what your GPLPROJ file path is named)

The rest of it you won't need to edit. I've been using this to make quests for Majesty: Expansion version.
@echo off rem Where the source files are located set SRC=GPL rem Where the compiled code will go set DEST=Data rem The name of the compiled GPL byte code. set OUTPUTNAME=TTS.bcd rem The project file that defines what files will be compiled set GPLPROJECTFILE=TTS_path.gplproj set GPLBCC="" rem Is the compiler in the Quest's source directory? if EXIST gplbcc.exe ( set GPLBCC="%CD%\gplbcc.exe" goto foundCompiler ) rem How about one up from where this file is? if EXIST ..\gplbcc.exe ( set GPLBCC="%CD%\..\gplbcc.exe" goto foundCompiler ) rem Is the Majesty SDK installed? if NOT "%MAJESTYSDK%"=="" ( set GPLBCC="%MAJESTYSDK%\gplbcc.exe" ) rem Check to make sure the compiler is available if NOT EXIST %GPLBCC% goto missingCompiler :foundCompiler if NOT EXIST "%DEST%" ( mkdir "%DEST%" ) echo Using GPL compiler at %GPLBCC% call :buildit %GPLPROJECTFILE% %OUTPUTNAME% if NOT EXIST "%SRC%\%OUTPUTNAME%" goto buildFailed echo Copying to %SRC%\%OUTPUTNAME% to %DEST% copy /y "%SRC%\%OUTPUTNAME%" "%DEST%" del "%SRC%\%OUTPUTNAME%" goto :EOF rem ************************************************ :buildit pushd %SRC% if EXIST %2 del %2 echo Building %1, output as %2 %GPLBCC% -in %1 -out %2 -stdout popd goto :EOF rem ************************************************ :missingCompiler echo ERROR: Unable to find the GPL compiler. Set the MAJESTYSDK environment variable to point to the SDK path. goto :EOF rem ************************************************ :buildFailed echo ERROR: Compile failed. goto :EOF
< >
Showing 1-3 of 3 comments
Per page: 1530 50