I have add new upgrades.
When I hover the mouse cursor over them, SC crash to desktop (memory error).i have a feeling that it crash when the tooltip pop-up, but maybe I'm wrong.
i use
unknown upgrades 55 & unknown upgrades 56,
in Firegraft i set the Dat requirements (copy another entry = exactly the same)
in button set, I copy other research (change condition variable and action variable to my new upgrade "unknown upgrades 55")
even in upgrades.dat I add the icon,label,cost
=========
i swap the new upgrade, with existing one, game is stable (dont crash when i hover mouse cursor over icon, even the plugin works).
=========
any idea why it crash? or what to do?
=============================
edit:
I do it again, now it wont crash, but
i can not research the upgrade. I click the upgrade button and nothing happened, it wont disappear in building.
Post has been edited 2 time(s), last time on Nov 13 2018, 4:12 pm by Lagi.
None.
Responsible for my own happiness? I can't even be responsible for my own breakfast
I have add new upgrades.
When I hover the mouse cursor over them, SC crash to desktop (memory error).
i have a feeling that it crash when the tooltip pop-up, but maybe I'm wrong.
i use
unknown upgrades 55 & unknown upgrades 56,
in Firegraft i set the Dat requirements (copy another entry = exactly the same)
in button set, I copy other research (change condition variable and action variable to my new upgrade "unknown upgrades 55")
even in upgrades.dat I add the icon,label,cost
=========
i swap the new upgrade, with existing one, game is stable (dont crash when i hover mouse cursor over icon, even the plugin works).
=========
any idea why it crash? or what to do?
=============================
edit:
I do it again, now it wont crash, but
i can not research the upgrade. I click the upgrade button and nothing happened, it wont disappear in building.
Does it start the process of researching the upgrade and just not finish, or is does the button do nothing at all?
crash when hover over icon:
i think it came from .tbl editor value being different in mpq and in Firegraft (because i edit them during work)
not responding buttton:
my untidiness, i set in Fgraf one time
upgrade 55, one time
tech 26=================
zergling burrow move - work with upgrade 55,
BUT
i want the icon "stop reaver" -> on attach picture "unborrow", to be disable when the research is not complete.
I cannot do it with Upgrade, because upgrade doesnt have proper condition in Firegraft (only "Upgrade at max level").
In Firegraft there is Spell Research (or Tech spell not research), but if I use tech (instead Upgrade) in GPTP plugin - zergling dont unburrow (the middle bottom icon dont work).
game_hook.cpp
//KYSXD - Burrow movement start
void runBurrowedMovement(CUnit *unit) {
if(unit->id == UnitId::ZergZergling &&
unit->canUseTech(TechId::UnusedTech26,unit->playerId) &&
//(scbw::getUpgradeLevel(unit->playerId, UpgradeId::UnusedUpgrade55)) &&
unit->playerId == *LOCAL_HUMAN_ID) {
if(unit->mainOrderId == OrderId::Burrow) {
unit->_unused_0x106 = (u8)true;
=================
edit:
i use tech 26
[in firegraft] for [basic burrower] i use condition "ability is reasearched" (then stop rever / 0 )
ok, the button works well (everthing is enable/disable as per researched icons)
-----------
but
the plugin burrow movement dont work
so i think that this sentence is wrong
unit->canUseTech(TechId::UnusedTech26,unit->playerId)will do some more testing tomorrow
Attachments:
Post has been edited 1 time(s), last time on Nov 12 2018, 11:15 pm by Lagi.
None.
Add requirement in form of technology (instead upgrade), so I can add disable label state in Firegraft.
this works
//KYSXD - Burrow movement start
void runBurrowedMovement(CUnit *unit) {
if(unit->id == UnitId::ZergZergling &&
scbw::hasTechResearched(unit->playerId, TechId::UnusedTech26) &&
//(scbw::getUpgradeLevel(unit->playerId, UpgradeId::UnusedUpgrade55)) &&
unit->playerId == *LOCAL_HUMAN_ID) {
if(unit->mainOrderId == OrderId::Burrow) {
unit->_unused_0x106 = (u8)true;
}
=========================================
new issue
require for having separate "stopReaver" order, render not-best looking end result with UI buttons:
I would like Unborrow zergling(=> "stopReaver"), to be interchangable with "burrow". No clue how to achieve that.
None.