:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::
Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Sun Jun 17, 2018 10:31 pm
All times are UTC + 0
 Forum index » Featured Tools » OS SHP Builder » Suggestions
Can we add a MuzzleFlash finder tool?
Moderators: stucuk
Post new topic   Reply to topic Page 1 of 1 [7 Posts] View previous topic :: View next topic
Author Message
G-E
General


Joined: 09 Feb 2015

PostPosted: Mon Sep 19, 2016 10:11 am    Post subject:   Can we add a MuzzleFlash finder tool? Reply with quote

This should be fairly simple to do, one of two ways...

The least involved way would be a tool you can select like a dropper, but instead of doing any painting, it would indicate coordinates x,y in a tiny rectangle above or below the cursor, which we would record manually.

The better way for modders would be a new popup window, where you can select multiple points on the image, then hit a "calculate" button to convert those to numerical values that can be straight copied & pasted from a text box beside the image.

This would speed up adding new buildings, AND as a bonus would make fixing WW's mistakes superfast, since I'm discovering a whole lot of buildings have errant flash locations.
_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

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


Joined: 16 Aug 2006
Location: Germany

PostPosted: Mon Sep 19, 2016 10:36 am    Post subject: Reply with quote

Good idea,
though surely faster and easier added to stucuk's SHP project, than in SHP Builders chaos code.

The more i think about it, it's also more work than expected.
a) you need a textbox in which you can set the camera angle (30° TS/RA2, 40° TD/RA1, arbitrary for custom OpenRA projects)

b) you need a textbox for the tilewidth. FLH's are measured in leptons with IIRC 256 leptons being a tile width.
Since tilewidth is different for each game, you need a way to enter 48 for TS and 60 for RA2. Other values for OpenRA projects using even bigger tile sizes.

A dropper also doesn't work well, since you can hardly find a 3D point using a dropper on a 2D space.
Better would be a textbox in which the FLH values can be entered and a visible dot is moving on the image to preview the current location.

c) you need multiple tools to find the values for the various offset keys
-PrimaryFirePixelOffset, which is pretty simple and just a pixel based offset from the images center
-FireFLH which is the 3d leptons offset
-DamageSmokeOffset might be another one. No clue how that is calculated
_________________
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
Graion Dilach
Defense Minister


Joined: 22 Nov 2010
Location: Iszkaszentgyörgy, Hungary

PostPosted: Mon Sep 19, 2016 12:37 pm    Post subject: Reply with quote

The OpenRA lepton equvivalent - world units - are 1/1024th of a cell not 1/256th.
_________________



AS Discord server: https://discord.gg/7aM7Hm2

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Mon Sep 19, 2016 1:08 pm    Post subject: Reply with quote

^^oh, and another input textbox

I also just noticed, you need a way to define the facing of the unit.
The preview FLH for the unit facing south is different than the preview for the unit facing west.

Thus the tool needs almost the entire art.ini section to know where the frames start and how many frames are there for each loop.
So for units the tool has to know
-StartStandFrame
-StandingFrames
and for infantry
-at least the Guard frames of the sequence


In the end it might be just easier to go ingame and find the value by trial and error.
F L H
Nowadays i can usually find the right FLH in about 3-5 ingame tests, so not that time consuming considering each test takes about 10 seconds with the Client.
_________________
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
G-E
General


Joined: 09 Feb 2015

PostPosted: Tue Sep 20, 2016 12:14 am    Post subject: Reply with quote

LKO: I was specifically talking about the garrisoned building flashes, not units with multiple facings... since as you say that gets complicated. This is entirely a pixel position number, no leptons or math required.

DamageSmoke is funny, because it's a 3 axis grid, moving the X more up-lft and the Y up-right sets the base position, then you have the Z which is straight up or down from there, and why you see such large numbers.
_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

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


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Tue Sep 20, 2016 7:26 am    Post subject: Reply with quote

My method for finding the garrisoned firing positions (or any other pixel based measurement) is to open the building in Photoshop & create a selection box from the center of the image to the point I want. Then copy the selection & create a new file, the dimensions of the new image will give me the position I am after.
_________________



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
G-E
General


Joined: 09 Feb 2015

PostPosted: Tue Sep 20, 2016 6:43 pm    Post subject: Reply with quote

That's great but I can guesstimate just as fast, the point is to automate the discovery somewhat, and make fixing numbers of existing buildings quick.
_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [7 Posts] View previous topic :: View next topic
 Forum index » Featured Tools » OS SHP Builder » Suggestions
Jump to:  
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only one of the following words: Brotherhood, unity, peace! 

 
You can post new topics in this forum
You can 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

Wildcard SSL Certificates
[ Time: 0.1354s ][ Queries: 11 (0.0047s) ][ Debug on ]