Posted: Fri Mar 27, 2015 5:16 am Post subject:
[Section]>BaseTag...how do I make this work?
Subject description: [Superweapon]>Cursor.xxx was actually intuitive. Why change it?!
In the documentation on SW mouse cursors, what is [Section]>BaseTag referring to?
Is [Section] a separate section from that of the SW using the cursor?
Do I change BaseTag to whatever the name of my Cursor= and NoCursor= are in the SW's section?
And, why was it changed when the old system worked just fine?
This test GenericWarhead SW (originally a Type=EMPulse super used to see if IvanBombs worked with it - they don't) is supposed to use the "IvanBomb" cursor in mouse.sha, but it uses the standard Attack cursor.
TL;DR - Custom cursor doesn't work with new Ares. How does this new tag(section?) even work?
Code:
[TestEMPulseSpecial]; declared in [SuperWeapons], attached to [GACNST]
UIName=NOSTR:EMP SW Test
Name=EMP SW TestWeapon
IsPowered=false
RechargeVoice=
ChargingVoice=
ImpatientVoice=
SuspendVoice=
RechargeTime=0.01
Type=GenericWarhead
Action=Custom
SidebarImage=IVANUICO
ShowTimer=yes
DisableableFromShell=no ; gs this determines which superweapons are turned off by the checkbox
Cursor=TestEMPSWCursor; should display on empty land cells, right?
NoCursor=TestEMPSWNoCursor; on water or occupied land, right?
TestEMPSWCursor=204,5,5,516,1,Center,Middle; supposed to be the dynamite cursor
TestEMPSWNoCursor=119,1,5,52,1,Center,Middle; supposed to be the no-deploy cursor
[TestEMPSWCursor]
BaseTag=204,5,5,516,1,Center,Middle; doesn't work, still In-Range Attack
TestEMPSWCursor=204,5,5,516,1,Center,Middle
Just tested the "old" flags to see if they worked.
THEY DO.
WHY DOES THE DOCUMENTATION SHOW COMPLETELY DIFFERENT THINGS THAN WHAT WORKS INGAME?! QUICK_EDIT
Posted: Fri Mar 27, 2015 9:46 am Post subject:
Re: [Section]>BaseTag...how do I make this work?
gameaddict11707 wrote:
In the documentation on SW mouse cursors, what is [Section]>BaseTag referring to?
[...]
Do I change BaseTag to whatever the name of my Cursor= and NoCursor= are in the SW's section?
Yes, the base tags for super weapon cursors are Cursor and NoCursor. Replace BaseTag with this name to get the real tag name. like Cursor.StartFrame. ("In the following list, [Section]►BaseTag represents the cursor’s base name. Replace this with the actual name." -Unclear Documentation)
gameaddict11707 wrote:
Is [Section] a separate section from that of the SW using the cursor?
No, that is part of the base tag. So it has to go under the super weapon section, just like any other tag. Who would name a section "Section"? Except for Columbo?
gameaddict11707 wrote:
And, why was it changed when the old system worked just fine?
What do you think is the point of Ares? Changing things. Also, it wasn't actually changed, as the old format is still working just fine. But if you have to add dozens of cursors, one tag is easier to manage than seven, but maybe that's just me.
Try this on your super weapon TestEMPulseSpecial:
Code:
[TestEMPulseSpecial]
Cursor=204,5,5,516,1,Center,Middle; supposed to be the dynamite cursor
NoCursor=119,1,5,52,1,Center,Middle; supposed to be the no-deploy cursor
Joined: 22 Nov 2010 Location: Iszkaszentgyorgy, Hungary
Posted: Fri Mar 27, 2015 12:46 pm Post subject:
TL;DR: Don't blame others if you cannot comprehend a documentation. _________________ "If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more... QUICK_EDIT
Joined: 09 Mar 2008 Location: Osaka (JP)/Hong Kong/Germany
Posted: Sat Apr 25, 2015 1:57 pm Post subject:
Belatedly, I also felt this part of the documentation wasn't easy to understand. It's not clear what a "cursor base name" is and intuitively I also understood it like gameaddict did. We're probably not alone. I would support re-writing it. If you like, I can re-write it for you to save you time and effort.
Also I would support actually implementing gameaddict's intuitive reading of it though - ie having a [Cursors] list and allow defining the cursors in their own sections, which would then simply go into Action= on the SW, especially if it's planned to ever give unit- and weapon-specific customizable cursors too. _________________
Mao Zedong wrote:
Our mission, unfinished, may take a thousand years.
You should have mentioned that when I was writing the docs. They were available as early as possible, right after I wrote them, in the RC package. I requested to check the docs, and there were no complaints about this, so I consider it all well. Iow. too late. I'll let someone else wipe that up.
Mind that this was Ares 0.8 already, thus about 7 months ago.
If it were for me, I wouldn't write the documentation at all. I know how this stuff works, it's particularly boring work, and I would really like to skip these one or two weeks of writing for each release.
I worked on something like this cursor list in 2011 already, but the C++ compiler didn't support lambdas in template functions that well and thus triggered a full recompile each time. So it took about 10 minutes to get a new testing build out, even just for a quick check. So I never included it. _________________ QUICK_EDIT
Joined: 09 Mar 2008 Location: Osaka (JP)/Hong Kong/Germany
Posted: Sat Apr 25, 2015 4:18 pm Post subject:
I did not report it because I did not want to cause additional work because of me having issues understanding it. I didn't think it was a larger problem. Sorry.
As I've offered, I can help write the documentaries for you if you are interested. _________________
Mao Zedong wrote:
Our mission, unfinished, may take a thousand years.
I think should just focus give a rough example of use (Cursor= ...) than so much descriptions where fitting but frankly I don't see else the fuss, the new logic is quick to the point without bloat of separate lists. Besides they are nothing but plain cursors and there is more interesting things to develop than waste time on some lists... QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum