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 Tue Apr 16, 2024 6:18 pm
All times are UTC + 0
Custom foundation question
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [10 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
suffle19
Disk Thrower


Joined: 27 Jun 2019

PostPosted: Sun Jun 21, 2020 6:15 pm    Post subject:  Custom foundation question Reply with quote  Mark this post and the followings unread

I have trouble with custom foundation(it's like "r" letter) - building isn't touches central cell where the units shoots so it's kinda immune to non AOE weapon.

Any way to resolve this and keep foundation as it is?

Code:

Foundation = Custom
Foundation.X = 3
Foundation.Y = 2
Foundation.0 = 0,0
Foundation.1 = 1,0
Foundation.2 = 2,0
Foundation.3 = 0,1
FoundationOutline.Length = 14
FoundationOutline.0 = -1,-1
FoundationOutline.1 = 0,-1
FoundationOutline.2 = 1,-1
FoundationOutline.3 = 2,-1
FoundationOutline.4 = 3,-1
FoundationOutline.5 = -1,0
FoundationOutline.6 = 3,0
FoundationOutline.7 = -1,1
FoundationOutline.8 = 1,1
FoundationOutline.9 = 2,1
FoundationOutline.10 = 3,1
FoundationOutline.11 = -1,2
FoundationOutline.12 = 0,2
FoundationOutline.13 = 1,2

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Sun Jun 21, 2020 6:55 pm    Post subject: Reply with quote  Mark this post and the followings unread

isn't the solution quite obvious? Make it 1 cell wider and shift the "r" one cell to the side, so the long line of the r is in the center.



customfoundation_r.png
 Description:
if the red cell is where units shoot at, make sure its on the building.
 Filesize:  32.97 KB
 Viewed:  1082 Time(s)

customfoundation_r.png



_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
suffle19
Disk Thrower


Joined: 27 Jun 2019

PostPosted: Mon Jun 22, 2020 5:19 pm    Post subject: Reply with quote  Mark this post and the followings unread

Lin Kuei Ominae wrote:
isn't the solution quite obvious? Make it 1 cell wider and shift the "r" one cell to the side, so the long line of the r is in the center.

Hmm, fair enough

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Mon Jun 22, 2020 7:27 pm    Post subject: Reply with quote  Mark this post and the followings unread

I forget what it is but IIRC there is a tag that lets you move the center point of a building to fix this sort of issue.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
suffle19
Disk Thrower


Joined: 27 Jun 2019

PostPosted: Wed Jun 24, 2020 8:49 pm    Post subject: Reply with quote  Mark this post and the followings unread

Mig Eater wrote:
I forget what it is but IIRC there is a tag that lets you move the center point of a building to fix this sort of issue.

Sorry what "IIRC" means? Very Happy

Back to top
View user's profile Send private message
suffle19
Disk Thrower


Joined: 27 Jun 2019

PostPosted: Wed Jun 24, 2020 8:52 pm    Post subject: Reply with quote  Mark this post and the followings unread

Lin Kuei Ominae wrote:
isn't the solution quite obvious? Make it 1 cell wider and shift the "r" one cell to the side, so the long line of the r is in the center.


I've tried as you say but it works not as it supposed to work...
I get I letter instead of r and wide selection canvas

Back to top
View user's profile Send private message
suffle19
Disk Thrower


Joined: 27 Jun 2019

PostPosted: Mon Jun 29, 2020 8:05 pm    Post subject: Reply with quote  Mark this post and the followings unread

so what no way to fix it?

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


Joined: 11 Feb 2016

PostPosted: Mon Jun 29, 2020 9:29 pm    Post subject: Reply with quote  Mark this post and the followings unread

Make it solid building #Tongue

_________________

Back to top
View user's profile Send private message Skype Account
silverwind
Cyborg Firebomber


Joined: 11 Jun 2016

PostPosted: Sun Jul 05, 2020 8:25 pm    Post subject: Reply with quote  Mark this post and the followings unread

I knew I'd seen this before, so after about 30 minutes of searching through ModEnc, I found:

TargetCoordOffset = X,Y,Z
Specifies the offset, in pixels, at which enemy fire is directed when this BuildingType is fired upon. Is specified in X,Y,Z format with 0,0,0 being the exact center of the structure.

The only instance of its use in the games is with NavalYards, and the numbers used there imply that for your purpose, you're looking at a number like:

TargetCoordOffset = -256,-128,0


Also, IIRC = If I Recall/Remember Correctly.

Last edited by silverwind on Mon Jul 06, 2020 9:30 am; edited 1 time in total

Back to top
View user's profile Send private message
suffle19
Disk Thrower


Joined: 27 Jun 2019

PostPosted: Mon Jul 06, 2020 7:10 am    Post subject: Reply with quote  Mark this post and the followings unread

silverwind wrote:
I knew I'd seen this before, so after about 30 minutes of searching through ModEnc, I found:

TargetCoordOffset = X,Y,Z
Specifies the offset, in pixels, at which enemy fire is directed when this BuildingType is fired upon. Is specified in X,Y,Z format with 0,0,0 being the exact center of the structure.

The only instance of its use in the games is with NavalYards, and the numbers used there imply that for your purpose, you're looking at a number like:

TargetCoordOffset = -128,-125,0


Also, IIRC = If I Recall/Remember Correctly.


Thanks.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [10 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.1515s ][ Queries: 14 (0.0122s) ][ Debug on ]