|
Re: Working with the SDK
Questions:
1. Are there instructions for using EarthCdbg in debug mode? I'd like to set a breakpoint and see what some values are .. but when I do menu "Debug / Start Debug F5" I get a MessageBox "Game currently doesn't contain any debug scrpts. Continue? YES NO".
So presumably, I need to copy the RPGCompute.ec script for debugging somewhere?
NOTE: I have successfully modified and applied an RPGCompute Mod; now I'm just wondering if I can use it in debug mode.
2. Are the Code source files for scripting available? I'm referring to "Code/EC_Scripts.cpp", etc.
When I click on the various .cpp and .h files under folder Scripts / Code in tool EarthCdbg, I get MessageBox saying things like "D:\Games\TwoWorldsSDK\EarthC\EC_Scripts.cpp contains an invalid path".
It seems that these code files are in subfolders EarthC and GamePlay, which are not included in the SDK download.
3. well, I should get to my real question behind #2 -- I think the ".h" files mentioned there contain certain constants, such as "ePointsCnt", which are used --but NOT DEFINED-- in the ".ech" files (I searched them all using a text search tool). I'd like to know the values of those constants.
Likewise, I'm interested in the definitions of the structures that use those constants, such as EquipmentValues.
~Steve
More desires:
I'd like to turn certain logic on/off during runtime. For example, the code that displays detailed stats for enemies.
Likewise, I'd like to be able to supply a few key numbers at runtime to my own code modifications.
Is there a standard way that the console window can set variables that I create in my mods?
Or alternately, are there some "dummy" (or "placeholder") variables, not used by the game, but accessible from the console, that I can use within my scripts?
The idea is that I would toggle booleans, and set integers, and then use those in the script.
~Steve
Edit
.
More about #3:
The SDK documentation lists FUNCTIONS on EquipmentValues, but it doesn't list the STRUCT FIELDS, nor the valid CONSTANTS to use.
Or possibly the fields aren't directly accessible, and everything is done thru functions, so I just need the appropriate constants.
Last edited by ToolmakerSteve; 16. January 2009 at 07:42..
Reason: Doublepost merged by Aziraal
|