PodeCaradox / Gm1KonverterCrossPlatform

A tool to convert strongholds gm1 and tgx files to png.
MIT License
27 stars 7 forks source link

All questions on graphics and graphics programs for Stronghold Crusader 1 #2

Open Russianstory opened 5 years ago

Russianstory commented 5 years ago

Hi. Very necessary stripes of lives. I will try to redraw them. Kinh if you can already unpacked files. I will redraw from and then post it here so that you pack them.

PodeCaradox commented 5 years ago

Hello Russianstory, you can unpack all files by yourself and edit them, just donwload the Programm https://github.com/Gaaammmler/Gm1KonverterCrossPlatform/releases click on assets and download the Converter.zip ,after unzip the file open the exe in the folder. After start change the language in the Options Tag to russian, after that you can add your workfolder and Stronghold GM1 Folder and edit the files , if you dont now how to use the programm feel free to question me.

Maybe edit me on Discord than i can show you how to use and change language. Gaaammmler#1397

Russianstory commented 5 years ago

How to open gm1 files? I opened the program translated into Russian. so what is next? Where to throw the program folder itself - Converter so that it opens gm1 files

PodeCaradox commented 5 years ago

After translation in the programm click on the folowing two menue point and select GM1 Folder (in the Stronghold Folder!!!(for me it is C:\Program Files (x86)\Steam\steamapps\common\Stronghold Crusader Extreme\gm) also works with Stronghold 1) and your own Workfolder(for me i did it in my GM1 folder and named it Workfolder:(C:\Program Files (x86)\Steam\steamapps\common\Stronghold Crusader Extreme\gm\Workfolder)): img1 After that you can see the GM1 Files on the Right Side: img2

Russianstory commented 5 years ago

Listen)) I managed to run !! I even managed to extract the baker's animation footage. Everything is fine for now. This program is much more convenient than the original.

Russianstory commented 5 years ago

BUT there is a problem .... is it a color inversion or the colors of units are simply displayed incorrectly and I don’t know how to fix it ....

PodeCaradox commented 5 years ago

just click on the arrows next to the colortables and it loads with the corecct colors. And please dont use gifs to edit the images, under the options menue you can export all as png images. There are 10 diffrent Colortables if you load Troups Colortable 1 and 10 are inversions sometimes, you can click on the INFO Icon to read more about the Colortables.

img1 img2 img3

Russianstory commented 5 years ago

Yes, it turned out! you are a professional you made such a program !! When is the release? I would like to post information about her in my group on the social network ... but until you made your official release, I do not dare to do that.

PodeCaradox commented 5 years ago

I have the firstbofficial release ready now, the one thing you cant do now is edit animation with colortable but it will comme soon, but all other things working right now. Just look at the releases here and you find out if i have posted a new release https://github.com/Gaaammmler/Gm1KonverterCrossPlatform/releases

Its better to use my programm right now, besause the img toolbox have some errors i csnt fix right now, please not use GM1 FIlES EDIT in the imagetoolbox, use the orginal Stronghold 1bor crusader Gm1 files.

Of course you can post the link everywhere you want.

Russianstory commented 5 years ago

So, I can pour this program on myself and show it to my comrades? To work with graphics? I just sit in several forums. =)

PodeCaradox commented 5 years ago

Yea you can post the link for the programm release in several forums :)

PodeCaradox commented 5 years ago

I have a new release for import Animations, you can check it out: https://github.com/Gaaammmler/Gm1KonverterCrossPlatform/releases

Russianstory commented 5 years ago

it dont works - E:\Stronghold Crusader Extreme HD\gm\Converter

PodeCaradox commented 5 years ago

Can you tell me exactly what not working?

Russianstory commented 5 years ago

the program suddenly stopped working. I do not know why. I did not change anything and did not do it. Where should I install it? exact address please Link to the latest version of the program.

Russianstory commented 5 years ago

I click on the program crashes.

Russianstory commented 5 years ago

image

PodeCaradox commented 5 years ago

https://github.com/Gaaammmler/Gm1KonverterCrossPlatform/releases You can paste the programm wherever you want, maybe start it with administrator rights. Also you maybe deleted your workfolder? Did it stopped working when you click on a GM1 file or on starting the programm?

Russianstory commented 5 years ago

Running as Administrator did not help. Same. Working folder? may be. How to do it?

PodeCaradox commented 5 years ago

One idea is to delete the userconfig folder under C:/Users/your username/appdata/roaming here delete the GM1converterCrossPlatform folder. the folder appdata is not visible you can just write %appdata% into windows search.

Russianstory commented 5 years ago

YES right! exactly! now everything is working! Thank you =)

PodeCaradox commented 5 years ago

I will add a Error message to the next release if that happens again. You need to select workfolder and Gm1 folder again, because of the delted userconfig. ;)

Russianstory commented 5 years ago

@Gaaammmler Your program is super! It works as reliably as AK-47)))))) thank you. It is worthy of respect! Especially on the background of the misery that the official developers of the game offered us. Now the question is: can you please make it so that when you click on the image of the object and in general, by default, the data on the image (object) is specified: height, length, depth, resolution, pixels. For example, I often get asked how many pixels do I need for a barn? And I don’t know ... and it would be great if all this would be taken into account in the program. Low bow. Thank you very much!

=

Твоя программа супер! Она работает так же надёжно как АК-47 )))))) спасибо тебе Это достойно уважения! Тем более на фоне того убожества, что предложили нам официальные разработчики игры. Теперь вопрос: а ты можешь пожалуйста сделать так, чтоб и при нажатии на картинку объекта и вообще по-умолчанию прописывались данные о рисунке (объекте): высота, длина, глубина, разрешение, пиксели. Меня например очень часто спрашивают а сколько пикселей надо для амбара? А я и не знаю... а так было бы здорово если в программе это всё было бы учтено. Низкий поклон. Спасибо большое!

PodeCaradox commented 5 years ago

Im not exactly sure what you mean, can you specifiy what you want me to implement? or draw a picture which surface you want me to add? Dou you mean some fields that show you resolution of the Image you selected,(its width * height). what you mean with depth? I can add some values to the Images and datatype: For Images: private ushort width; private ushort height; private ushort offsetX; private ushort offsetY; private byte imagePart; private byte subParts; private ushort tileOffset; private byte direction; private byte horizontalOffsetOfImage; private byte buildingWidth; private byte animatedColor; private UInt32 offsetinByteArray; private UInt32 sizeinByteArray;

For Datatypes: private String name; private UInt32 iUnknown1; private UInt32 iUnknown2; private UInt32 iUnknown3; private UInt32 iNumberOfPictureinFile; private UInt32 iUnknown4; private UInt32 iDataType; private UInt32[] iUnknown5 = new UInt32[14]; private UInt32 iDataSize; private UInt32 iUnknown6;

For example, I often get asked how many pixels do I need for a barn? Ehm with which Imagetool you working? you can see the pixel size in mostly every Image programm. But i can implement that esaliy

Russianstory commented 5 years ago

image

PodeCaradox commented 5 years ago

For Building height the middle line or left/right side or both? and for the width top and bottom in your picture and the diagonal width there?

width need to be the same. For the height you can change it like you want but the toptiles have a fixed position inside stronghold if anyone find that in the exe you change that to in future. ;)

Russianstory commented 5 years ago

editing )))) image

PodeCaradox commented 5 years ago

Do you have Discord,Skype or teamspeak @Russianstory ?

Russianstory commented 5 years ago

no sorry) i cannot speak well. i use translator)

PodeCaradox commented 5 years ago

Here some explinations: first the roofs have static positions inside Stronghold exe look here for my issue i need help: https://github.com/Sh0wdown/UnofficialCrusaderPatch/issues/375

also you not need the size from the middle tile in green, you can change the hole width of the Image but the witdh cant be changed from the .png. The picture or the Tiled Datatype consists like in the Info button shown of a Tiled Base and Images on top of it. Here examples: (Under the tiled diamond base all will be not used, and all on top of it you can change like you want) Image13 Image26 Image7 Image10

Discord will be easier to write and anwering faster you need not to talk ;)

The static tiles on Top that dissapear if anyone stand on top of the Tower, i can them make invisible from start on, maybe i add this in the Programm: Image124 Image122 Image123

And the other static Images that have the Positions inside Stronghold exe: Image3 Image4 Image2 Image24

PodeCaradox commented 5 years ago

Image10

all on Top the red area can also be changed here

Russianstory commented 5 years ago

OK I understand you thank you so much for the information and picture) I will make myself an instruction to look for artists.

Russianstory commented 5 years ago

@PodeCaradox Hello my friend. Tell me please. What are the coordinates of the buildings in the game? How to determine this? how rotated the building is and aspect ratio. I need to know to work in the 3D program Blender. The fact is that you must first expose the coordinates of the buildings so that they are ideally fitted to the coordinates of the original buildings from the game.

=

Привет дружище. Скажи пожалста. Какие координаты зданийв игре? как определить это? насколько повёрнуто здание и соотношение сторон. Мне надо знать для работы в 3д программе Блендер. Дело в том, что надо сначала выставить коррдинаты зданий, чтоб они были иделально подогнаны под коррдинаты оригинальных зданий из игры.

PodeCaradox commented 5 years ago

@Russianstory the game is isometric so all is 2d but isometric mean it give you the look of 3d but the hole game is 2d. Here is a page on wiki that explain isometric a little bit more: https://en.wikipedia.org/wiki/Isometric_projection What you want to do with blender? you want to change textrues from 3d model and save them as the 2d Images?

Russianstory commented 5 years ago

I will remodel all the buildings. The graphics will be redone in Russian style. I will do it in the 3D program and then take pictures of the 3D model in the angle I need. Therefore, I asked what coordinates or whether they exist at all to set the correct angle, tilt and general appearance of the building.

PodeCaradox commented 5 years ago

you can calulate them fom the images height and width with the angle, just convert it back from isometric view to get height and witdh for 3d model. something like that shoul work: realwidth = TileWidth Cos(30) + TileHeight Cos(60) realHeight = TileWidth Sin(30) + TileHeight Sin(60)

Russianstory commented 5 years ago

@PodeCaradox Thank you very much. I understood. Please pozhalsta. extract all frames of trees and two bushes with animation from the game. I beg you

PodeCaradox commented 5 years ago

With the Gm1 exporter Gif exporter you can do this easily Unbenannt Just select all tiles with ctrl + a and click gif export.

ImageAsGif

Russianstory commented 5 years ago

ok i will try

Russianstory commented 5 years ago

@PodeCaradox Why, when you export animation graphics, I get ten OrginalAnimationPalette folders in each of which 148 frames were .... is it the same thing? I can `t get it

PodeCaradox commented 5 years ago

@Russianstory do you donwloaded the new gm1 converter from the release page? https://github.com/PodeCaradox/Gm1KonverterCrossPlatform/releases just click here and the gif exporter will shown Unbenannt

Russianstory commented 5 years ago

YEs i downloaded converter from the release page

PodeCaradox commented 5 years ago

also the neweset version?

Russianstory commented 5 years ago

it is ok now i have animation )) trees and bush )

Russianstory commented 4 years ago

@PodeCaradox Hi, why can't I work in a program with files from the gfx folder? I really need pictures where in the barn there is food in different quantities .... preferably in full 250 units. How can I do this? Thanks =)

Привет, а почему я не могу работать в программе с файлами из папки gfx ? Мне очень нужны кадры где в амбар есть еда в разном количестве.... желательно в полный 250 единиц.Как мне это сделать? Спасибо =)

PodeCaradox commented 4 years ago

Oh i didn't add this folder by now, i can make fast a new release with the folder automatically in it.

Russianstory commented 4 years ago

I would really appreciate it. Do it please. I need to fit the barn to the original barn.

PodeCaradox commented 4 years ago

@Russianstory i added the gfx folder now just follow the instructions on the new release and the gfx Folder will show up: https://github.com/PodeCaradox/Gm1KonverterCrossPlatform/releases

If you find a error just send me a message i didn't test the release so much for now.

Russianstory commented 4 years ago

I can’t understand how it works all the time, it gives an error .... it seems that everything was fine with the gm folder ... but it’s not with the gfx folder - it gives an error. And I have to erase everything in the C / name / roaming drive I do not understand ....

PodeCaradox commented 4 years ago

can you send me a picture with the error? maybe I know your problem, also can you show me your folder structure inside the stronghold folder.

Is you gfx Folder inside the same folder as the gm? preview1

Russianstory commented 4 years ago

image

image