Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Apr 19, 2024 10:29 am
All times are UTC + 0
[Section]>BaseTag...how do I make this work?
Moderators: Ares Support Team at PPM, Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [9 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
gameaddict11707
Grenadier


Joined: 15 Jul 2011

PostPosted: 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?!
Reply with quote  Mark this post and the followings unread

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? Mad

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

SW.Damage=100
SW.Warhead=NUKE
SW.RequiresTarget=land,empty

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

[TestEMPSWNoCursor]
BaseTag=119,1,5,52,1,Center,Middle; doesn't work, still...normal arrow pointer but positioned weirdly
TestEMPSWNoCursor=119,1,5,52,1,Center,Middle

[Section]
TestEMPSWCursor=204,5,5,516,1,Center,Middle
TestEMPSWNoCursor=119,1,5,52,1,Center,Middle; FFFFFFFFFF- NONE OF THIS WORKS




swcursorproblem002_ares09.png
 Description:
 Filesize:  425.79 KB
 Viewed:  1661 Time(s)

swcursorproblem002_ares09.png



swcursorproblem001_ares09.png
 Description:
 Filesize:  486.84 KB
 Viewed:  1661 Time(s)

swcursorproblem001_ares09.png



Back to top
View user's profile Send private message
gameaddict11707
Grenadier


Joined: 15 Jul 2011

PostPosted: Fri Mar 27, 2015 5:23 am    Post subject: Reply with quote  Mark this post and the followings unread

Just tested the "old" flags to see if they worked.
THEY DO.
WHY DOES THE DOCUMENTATION SHOW COMPLETELY DIFFERENT THINGS THAN WHAT WORKS INGAME?!

Back to top
View user's profile Send private message
deathreaperz
Commander


Joined: 20 May 2013
Location: Indonesia

PostPosted: Fri Mar 27, 2015 5:57 am    Post subject: Reply with quote  Mark this post and the followings unread

Watch for your Caps Lock!

_________________
Quote:
Humans were born for two things: to pray and be productive.


Back to top
View user's profile Send private message
AlexB
Commander


Joined: 31 May 2010
Location: Germany

PostPosted: Fri Mar 27, 2015 9:46 am    Post subject: Re: [Section]>BaseTag...how do I make this work? Reply with quote  Mark this post and the followings unread

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? Mad

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

_________________

Back to top
View user's profile Send private message
Graion Dilach
Defense Minister


Joined: 22 Nov 2010
Location: Iszkaszentgyorgy, Hungary

PostPosted: Fri Mar 27, 2015 12:46 pm    Post subject: Reply with quote  Mark this post and the followings unread

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...

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID
Millennium
Commander


Joined: 09 Mar 2008
Location: Osaka (JP)/Hong Kong/Germany

PostPosted: Sat Apr 25, 2015 1:57 pm    Post subject: Reply with quote  Mark this post and the followings unread

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.  

Back to top
View user's profile Send private message
AlexB
Commander


Joined: 31 May 2010
Location: Germany

PostPosted: Sat Apr 25, 2015 3:20 pm    Post subject: Reply with quote  Mark this post and the followings unread

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.

_________________

Back to top
View user's profile Send private message
Millennium
Commander


Joined: 09 Mar 2008
Location: Osaka (JP)/Hong Kong/Germany

PostPosted: Sat Apr 25, 2015 4:18 pm    Post subject: Reply with quote  Mark this post and the followings unread

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.  

Back to top
View user's profile Send private message
ApolloTD
Commander


Joined: 19 Nov 2003

PostPosted: Mon Apr 27, 2015 9:40 am    Post subject: Reply with quote  Mark this post and the followings unread

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...

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [9 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
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


Powered by phpBB © phpBB Group

[ Time: 0.1696s ][ Queries: 15 (0.0108s) ][ Debug on ]