Jump to content


Photo

Editing APT Files


  • Please log in to reply
247 replies to this topic

#81 逊Arathorn妻

逊Arathorn妻
  • Members
  • 44 posts
  • Projects:W3D-Importer

Posted 22 October 2011 - 05:01 PM

Hey Guys

I made this tool with some interface, for the guys who don't like the console (meee xDD)
Click
Have fun with it

/Update 1(23.10):Improved Interface (very much :-D)
Screenshot:
Posted Image

Feel free to use it and give me some ideas what could be added. Unfortunately i have the same problem like my mate Gwanw. The german community doesn't allow me to release this tool(or any tool what have sth. to with apts) :-(. They are all out of control there :-D.

How you can see on the next screen it is faster than ever before :-):
[img width=600 height=450]http://img535.imageshack.us/img535/7896/screenshotapt.jpg[/img]


Cu

Edited by 逊Arathorn妻, 23 October 2011 - 03:17 PM.


#82 Goldtouch

Goldtouch

    title available

  • Hosted
  • 449 posts

Posted 23 October 2011 - 04:32 PM

Nice contribution. What programming languages can you work with?

Edited by THORONGlL, 23 October 2011 - 04:36 PM.


#83 逊Arathorn妻

逊Arathorn妻
  • Members
  • 44 posts
  • Projects:W3D-Importer

Posted 23 October 2011 - 05:15 PM

I made this prog in c#. But i am not the best programmer here i think:-D.
U see that i had to execute the converters with a .bat file, because i didn't know how to solve the problem else.
If you want i can upload the source code

Edited by 逊Arathorn妻, 23 October 2011 - 05:16 PM.


#84 NDC

NDC
  • Members
  • 245 posts
  • Location:Misty Albion

Posted 04 November 2011 - 09:45 AM

Hi!
I came across this topic and decided to try myself in some sort of apt editing.
Now my goal is to add video and images to custom race in BFME I. I know that BFME-I-related questions should be asked in other part of forum but I did not manage to find anything appropriate there. Firstly, I would like to ask did anyone face with the problem that the program fails to Palantir.apt file? And another thing to ask concerns the .ru files. Does anyone know what are they made for?

#85 Gwanw

Gwanw
  • Members
  • 150 posts
  • Location:Germany
  • Projects:OpenSAGE
  •  ...

Posted 11 November 2011 - 07:03 PM

I can decode the palantir.apt with the tool. And I know the function of the .ru-files.
It's too complex to explain it here, but if you have icq, msn or skype, I can try it (and I can send you the palantir.xml).

#86 NDC

NDC
  • Members
  • 245 posts
  • Location:Misty Albion

Posted 11 November 2011 - 09:11 PM

Oh, that would be great! I will call you back soon! Thanks!

#87 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 16 November 2011 - 05:38 PM

RU files are the files that contain the data of the coordinates of images that are defined in the apt.
The number (filename) is the integer that is written in:
<shape id="46" top="-32.000000" left="-32.000000" bottom="32.000000" right="32.000000" geometry="46" />
So this .ru file is named 46.ru

inside...
c
s tc:255:255:255:255:45:1:0:0:1:231:77
t -32:32:-32:-32:32:-32
t 32:-32:32:32:-32:32

s tc:###:###:###:###:##:#:#:#:#:231:77, the last two are the center of the image.
My guess as to the first 4 integers in the "tc:" command are the Color "filter" that is applied to the image, RGBA, though I have not tested this.
the other two lines define some sort of size of the image... Though I think Gwanw might know exactly what each one of them means.
The image defined there is 64x64
------------
Ok I think I figured out what the t does, the T code means triangle.
Draws a triangle from the coordinates (on local axis) between these 3 vertices:
a(-32,32) b(-32,-32) c(32,-32)

Edited by Ridder Geel, 16 November 2011 - 06:10 PM.

Ridder Geel

#88 Gwanw

Gwanw
  • Members
  • 150 posts
  • Location:Germany
  • Projects:OpenSAGE
  •  ...

Posted 16 November 2011 - 10:04 PM

Thats correct. The first 4 integers are the RGBA values. The next one is the link to the .dat file. The 4 further integers have the same function like rotm00, rotm01, rotm10, rotm11, so the skewing and scaling of the textur. The last 2 integers say you the basic position for the triangle strip.
And so the next lines are triangle strips.
But thats only on type of a .ru file. And thats a easy system, there are complex systems, too.
In addition the .ru files are independet of the .apt files.

#89 ReallyFat

ReallyFat

    title available

  • Project Team
  • 352 posts

Posted 01 January 2012 - 06:40 PM

ok, im back.
Mod's getting on nicely.
So I wus wondering, .apt editing would be a whole lot easier if I knew where to change placement from. I'm currently trying to move the palantir up to the top right (for the mod) and having extreme issues. Starting with, i dunno which file am i to edit, and then i don't know where in the file to look.
I wanted the palantir in the top right corner and the hero select buttons under it. Now is that possible?

signature.png


#90 JUS_SAURON

JUS_SAURON

    El Shaddai

  • Members
  • 1,581 posts
  • Location:Trinidad
  • Projects: BFME2 MOD - Power Of The Ring
  •   INI Coder

Posted 01 January 2012 - 07:09 PM

Before you move it ..wouldn't the Porter's Build commands clash with the Palintir ..as it uses both really ?
Unless you move the Build commands to the bottom ...more work :facepalm:

#91 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 01 January 2012 - 11:56 PM

It's possible but a WHOLE lot of work, even I am not sure exactly where you would need to start, but i'm quite sure u will need to edit at least 3 files :p Did you decompile the apt files already or not? That would be the first step.
Ridder Geel

#92 ReallyFat

ReallyFat

    title available

  • Project Team
  • 352 posts

Posted 02 January 2012 - 09:51 AM

well i used this converter that Arathorn made up there. thx ^.^
Well, we intended to move the palantir to the top right, hero selection below it. Then where they used to be, the bottom, we could put the porter commands, so that most of the time it would be empty.

signature.png


#93 ReallyFat

ReallyFat

    title available

  • Project Team
  • 352 posts

Posted 02 January 2012 - 09:57 AM

lets start with the palantir. How do i move that?

signature.png


#94 Gwanw

Gwanw
  • Members
  • 150 posts
  • Location:Germany
  • Projects:OpenSAGE
  •  ...

Posted 02 January 2012 - 11:07 AM

You need only the Palantir.xml.
You must search for the first placeobject entries, because thats the positions you must edit:
				<placeobject flags="38" depth="1" character="40" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.000000" tx="0.000000" ty="0.000000" red="255" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="ButtonFlashStage" />
				</placeobject>
				<placeobject flags="38" depth="3" character="41" rotm00="0.999863" rotm01="0.000000" rotm10="0.000000" rotm11="0.999985" tx="0.000000" ty="0.000000" red="255" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="SpellBookUI" />
				</placeobject>
				<placeobject flags="38" depth="5" character="50" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.000000" tx="193.000000" ty="639.299988" red="255" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="PalantirBack" />
				</placeobject>
				<placeobject flags="46" depth="7" character="52" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.000000" tx="285.700012" ty="659.400024" red="0" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="CommandBackground" />
				</placeobject>
				<placeobject flags="46" depth="9" character="52" rotm00="1.311371" rotm01="0.000000" rotm10="0.000000" rotm11="1.311371" tx="129.800003" ty="640.099976" red="0" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="RegionBackground" />
				</placeobject>
				<placeobject flags="38" depth="11" character="55" rotm00="0.639999" rotm01="0.000000" rotm10="0.000000" rotm11="0.690994" tx="280.200012" ty="660.900024" red="255" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="GlobeSwirlRender" />
				</placeobject>
				<placeobject flags="38" depth="13" character="55" rotm00="0.912506" rotm01="0.000000" rotm10="0.000000" rotm11="0.986496" tx="129.800003" ty="640.099976" red="255" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="BigGlobeSwirlRender" />
				</placeobject>
				<placeobject flags="46" depth="15" character="57" rotm00="0.640076" rotm01="0.000000" rotm10="0.000000" rotm11="0.690674" tx="280.200012" ty="660.900024" red="0" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="EmptyGlobe" />
				</placeobject>
				<placeobject flags="46" depth="17" character="86" rotm00="1.000092" rotm01="0.000000" rotm10="0.000000" rotm11="1.000015" tx="287.600006" ty="660.000000" red="0" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="CommandUI" />
				</placeobject>
				<placeobject flags="46" depth="27" character="89" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.000000" tx="129.850006" ty="640.150024" red="0" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="RadarBackground" />
				</placeobject>
				<placeobject flags="46" depth="29" character="93" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.000000" tx="14.000000" ty="537.000000" red="0" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="Radar" />
				</placeobject>
				<placeobject flags="46" depth="33" character="98" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.000000" tx="14.000000" ty="537.000000" red="0" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="RadarPings" />
				</placeobject>
				<placeobject flags="174" depth="40" character="100" rotm00="2.190186" rotm01="0.000000" rotm10="0.000000" rotm11="2.190155" tx="20.299999" ty="530.599976" red="0" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="MoviePlayback" />
					<clipactions>
					<clipaction flags="262144" flags2="0">
						<string action="161" str="_type" />
						<string action="166" str="AptPalantir::RenderMovie" />
						<noarg action="0" />
				</clipaction>
					</clipactions>
				</placeobject>
				<placeobject flags="46" depth="42" character="105" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.000000" tx="0.000000" ty="512.000000" red="0" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="PalantirFrame" />
				</placeobject>
				<placeobject flags="46" depth="44" character="114" rotm00="1.001617" rotm01="0.000000" rotm10="0.000000" rotm11="1.000259" tx="289.549988" ty="659.849976" red="0" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="CommandButtons" />
				</placeobject>
				<placeobject flags="46" depth="90" character="122" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.000000" tx="287.600006" ty="660.000000" red="0" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="AutoAbilityOverlays" />
				</placeobject>
				<placeobject flags="46" depth="102" character="136" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.001953" tx="42.450001" ty="719.400024" red="0" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="ResourceBar" />
				</placeobject>
				<placeobject flags="46" depth="116" character="139" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.000000" tx="192.000000" ty="640.049988" red="0" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="PalantirSpectralHighlight" />
				</placeobject>
				<placeobject flags="46" depth="120" character="255" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.000000" tx="79.000000" ty="538.000000" red="0" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="PalantirButtons" />
				</placeobject>
				<placeobject flags="38" depth="122" character="258" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.000000" tx="129.800003" ty="640.099976" red="255" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="MovieButton" />
				</placeobject>
				<placeobject flags="46" depth="124" character="273" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.000000" tx="0.000000" ty="512.000000" red="0" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="ObserverStuff" />
				</placeobject>
				<placeobject flags="46" depth="128" character="291" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.000000" tx="27.000000" ty="686.000000" red="0" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="messengerButton" />
				</placeobject>
				<placeobject flags="38" depth="146" character="41" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.000000" tx="0.000000" ty="0.000000" red="255" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="SideCommandBar" />
				</placeobject>
				<placeobject flags="38" depth="148" character="307" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.000000" tx="203.500000" ty="770.299988" red="255" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="CommandPointsFlash" />
				</placeobject>
				<placeobject flags="38" depth="174" character="41" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.000000" tx="375.000000" ty="700.000000" red="255" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="HeroSelectUI" />
				</placeobject>
				<placeobject flags="38" depth="176" character="41" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.000000" tx="585.000000" ty="607.000000" red="255" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="helpBox" />
				</placeobject>
				<placeobject flags="38" depth="178" character="40" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.000000" tx="285.000000" ty="500.000000" red="255" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="altHelpBoxLocation" />
				</placeobject>
				<placeobject flags="38" depth="180" character="41" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.000000" tx="512.000000" ty="30.000000" red="255" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="planningModeUI" />
				</placeobject>

Now you must find your objects through the ponames. The palantir are all placeobjects without the first two objects and the last 4 objects, I think.
The "Hero Secect Button" is the "HeroSelectUI"-object (Who'd have thunk it? :grin: ).
Now you must edit the positions for the Palantir (I think ca -500 units are the right vertical offset) and the position for the HeroSelectUI (ca. -150 units horizontal).
Than you can do the finishing touch.

#95 ReallyFat

ReallyFat

    title available

  • Project Team
  • 352 posts

Posted 02 January 2012 - 11:18 AM

OK, that seems both easy and hard. I need to get the coordinates for where to move the the palantir to. How d,you make that out? And, once i figure out these values, WHERE do i put them?
<placeobject flags="46" depth="42" character="105" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.000000" tx="0.000000" ty="512.000000" red="0" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
                                        <poname name="PalantirFrame" />
                                </placeobject>
This, if I am correct, is the frame around the palantir, the woodish-golden-yellow thing.
which values am i to change here?

signature.png


#96 Gwanw

Gwanw
  • Members
  • 150 posts
  • Location:Germany
  • Projects:OpenSAGE
  •  ...

Posted 02 January 2012 - 12:30 PM

Oh, sorry, I made a mistake. There are more objects, which you don't have to edit. So the Palantirframe, too. (Usually all objects with the coordinates 0/0). And there are some names like SideCommandBar. This is only bar with the bought spells, I think.
But back to the editing of positions.
Bfme operate with a 1024*768 system. The tx and ty values shows the positions of the objects.
So you must superior, where the objects should be. Than you must estimate the offset or need a screenshot to charge the right position. (I estimate the positions, so for every part of the palantir you must calculate the ty position: old position - 500; for the HeroSelectUI with tx and 150)
Now you must only enter the new positions and you are ready for a test. :thumbsupsmiley:

#97 ReallyFat

ReallyFat

    title available

  • Project Team
  • 352 posts

Posted 02 January 2012 - 04:18 PM

These are in PIXELS, right? So a standard image-editing program should show the things?

signature.png


#98 ReallyFat

ReallyFat

    title available

  • Project Team
  • 352 posts

Posted 02 January 2012 - 04:38 PM

OK i got it. I just LOVE PDN :wub:
Anyway, so now, which object is the Palantir itself? I'm not talking bout the mini map, i mean the Palantir, that little orb with map cutting into it, that has a weird swirl inside it qhen nothing is selected.
I think the objest for the swirl is one of these:
<placeobject flags="38" depth="11" character="55" rotm00="0.639999" rotm01="0.000000" rotm10="0.000000" rotm11="0.690994" tx="280.200012" ty="660.900024" red="255" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="GlobeSwirlRender" />
				</placeobject>
				<placeobject flags="38" depth="13" character="55" rotm00="0.912506" rotm01="0.000000" rotm10="0.000000" rotm11="0.986496" tx="129.800003" ty="640.099976" red="255" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">
					<poname name="BigGlobeSwirlRender" />
				</placeobject>
And the frame is Palantir frame. But which is the Palantir object? Or which ONES come together to make the Palantir?

Earlier you said that Palantir Frame need not be moved. Why is that? wont the palantir be left hanging there and then at the bottom-left, there'll be an empty frame?
Thanks :) :) :)

signature.png


#99 Gwanw

Gwanw
  • Members
  • 150 posts
  • Location:Germany
  • Projects:OpenSAGE
  •  ...

Posted 02 January 2012 - 05:12 PM

I made a mistake again :lol: . Certainly you must edit the PalantirFrame^^.
I think, the PalantirBack is the orbit, but I'm not sure. You must test it ;).

#100 ReallyFat

ReallyFat

    title available

  • Project Team
  • 352 posts

Posted 03 January 2012 - 09:09 AM

this tx and ty tells me nothing. i know where the top-left corner is, big deal. But how can i tell what the size of the entire oblect is?

signature.png





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users