It compiled fine, I just thought I'd give you the heads up.
What's the proper way to control the positioning of buttons in a set? I tried using this, but it gives me the odd result shown in the screenshot below.
button = buttonSet->firstButton;
button->iconID = 374;
button->position = 2;
When the new button becomes disabled, everything returns to the proper position.
Attachments:
None.
All the buttons are connected, so moving the first button that was in position 2 to position pushes the rest of them.
I believe all the buttons are stored together, so you could always change buttons using this code:
button = &buttonTable[n]; //Button 'n'
Of course, I don't think there is a way to see what the button IDs are.
Post has been edited 2 time(s), last time on May 23 2009, 9:17 pm by A_of-s_t.
I tried playing around with that code, and didn't have any luck using it.
I tried using the button set numbers provided by FireGraft, but that didn't match anything. Then I tried using the unit IDs, which also didn't work. Finally, I tried outputting the value generated by button = buttonSet->firstButton; and comparing it to button = &buttonTable[n]; //Button 'n'. (Thanks for including that test.txt code, by the way.)
For n, I looped through OVER 9000!!! entries (0-9001), and did not find a match.
buttonSet->firstButton; when using a marine, gave me 005177E0. The closest to a match was 005177E8.
Then again, my plan of attack may have been completely off, now that I think about it.
None.
I'll work on button handling over the Memorial weekend; I want to try to finish the GUI developer though.
I added a pre-release of the GUI. Nothing is close to done, just the basic layout and how its going to work.
Post has been edited 1 time(s), last time on May 24 2009, 4:57 am by A_of-s_t.
Is there a way to modify existing code through this? I found the area where buildings are checked for the rally point ability, and I'd like to overwrite that section.
None.
Just include it in nextFrame.cc. And if you don't mind sending me the code when your done, I'd like to modify it for 1.15.1
.
Do you mean, edit memory in SC at those addresses? What I would do is check the asm with ollydbg and just copy +paste that into VC++ as a new function and dereference the pointer to the original to reference the new function.
I already have the 1.15.1 addresses. 0x00467359 is where the list to check is called, and 0x0047B6E0 has the list itself. At least that's what CheatEngine gave me.
I'm not sure how to do the whole dereference/reference thing you mentioned.
None.
You do it pretty much the same way you dereference buttons and button sets. I'll check it out in a bit.
Okay, I stayed up all last night redoing the GUI. I was originally doing it with Windows.Forms with C#, but I just realized how powerful WPF is... so, I completely overhauled and redid the program. The text editor now includes syntax highlighting
.
I haven't updated the download yet, I'm trying to add word autocompletion and a button for compiling. I also need to finish as much as possible before May 31 since I'm entering it in for a scholarship.
Sounds cool. Are you going to release the source for it?
Good luck with the scholarship.
None.
http://broodwarai.com/GPTP/main.htmI released the GUI. I'll upload the source to it in the next version -- I already have plans for updating, so, post any ideas you have to improve the program.
The list of things to add:
Installer
Utilizing the Registry
On start up, detect prerequisites
Add conditions to the toolbox
Add help files
SDE, BWAPI owner, hacker.
A_of-s_t, please get back to me on the success or failure of your attempt to load BWAPI as an MPQDraft/Firegraft plugin.
I was successful in my attempt to load the BWAPI as an MPQDraft plugin. The CTRT_Thread in the BWAPI is the same as the InitializePlugin function in the MPQDraft plugin.
SDE, BWAPI owner, hacker.
Could you post the modified files? I'd like to make the latest version compatible with MPQDraft, but I can't seem to get it to display in the plugin list.
I didn't completely convert the BWAPI, but I'll upload when I can.
EDIT:
GPTP is no longer supported here. Go to broodwarai.com or modcrafters.com for support.
Post has been edited 1 time(s), last time on Jun 11 2009, 9:26 pm by A_of-s_t.