PK3 Creator version 0.1 --- Download Now! + Full Source code!


(Flippy) #21

It is. It is impossible to add textures (or any other files for that matter) that have not been extracted.

I’m not sure when v0.2 will be ready, because I’m not sure why the textures aren’t working yet… I’ll figure it out soon enough though.


(Flippy) #22

Well, automatic texture importing works. I am pretty sure it gets all of them now (at least all the non-standard shaders!) but it will need some more testing… I will release 0.2 soon though so you guys can help me test. So be aware that 0.2 might not have 100% functioning texture support yet!

On to models… This is going to be another challenge, since I have no clue how to tell apart misc_models and misc_gamemodels… models should not go in the pk3, while gamemodels should, but I can’t tell the difference by just looking at the path! I might have to retrieve some entity information from the BSP as well… Maybe I can’t make models work in 0.2 yet :frowning:


(Flippy) #23

I have found a way to read the entity information in the BSP, and to me surprise it looks nearly the same as the .map file. This means it is pretty easy to read, but it may also be slow to read (it’s pretty large and a lot of parsing needs to be done to find all the models).

I think it is pretty easy to let my program find the path of a model inside the entity information chunk, and see if it is a gamemodel or just a model. Will have to work on that… Stay tuned!


(Nail) #24

sorry, been out of town, mirror now up

Creator:
http://ftp.freenet.de/pub/4players/hosted/et/tools/PK3Creator_v02_setup.rar

Source:
http://ftp.freenet.de/pub/4players/hosted/et/tools/PK3Creator_v02_source.zip


(Flippy) #25

Awesome, thanks!


(Nail) #26

no problem, I’ll host/mirror any good tools/programs for W:ET or ET:QW


(Flippy) #27

Good news… Automatic Texture & Model importing works!

There’s still a few minor things I need to work out but I expect a release later today already.

In the meantime, I am also working a little on visual feedback. I decided to replace the ListBoxes (the lists to display textures/shaders/models etc) by ListViews, which support multiple Columns and icons. At this time I am using one extra column to show you if the file is a “Standard” file, which means it could be found in pakx.pk3.
I might add more columns later, depending on how useful the information is (file size, last modified date etc).

I have also added a few small things:

  • A Live Preview to the Arena File Generator window, where you can see the arena file being generated in realtime while you change settings.
  • A Compression Quality option (with quality on 0, battery.BSP zipped to about 11.2 MB. Quality on 9 (highest) made it zip to 4.9 MB)
  • I am working on a Readme file generator

(-SSF-Sage) #28

It shouldn’t be hard to read bsp at models if you need to add the model to pk3 or not and when. Because, if the model path (not shader) is displayed, shouldn’t the model be added always, since any static models (misc_models) are converted into normal mesh, thus doesn’t need to be added, so there is no reason to write the model path into the bsp (shader is still different thing).

So, if the model path is shown in bsp, doesn’t it mean you need to add it.


(Flippy) #29

[QUOTE={SSF}Sage;187813]It shouldn’t be hard to read bsp at models if you need to add the model to pk3 or not and when. Because, if the model path (not shader) is displayed, shouldn’t the model be added always, since any static models (misc_models) are converted into normal mesh, thus doesn’t need to be added, so there is no reason to write the model path into the bsp (shader is still different thing).

So, if the model path is shown in bsp, doesn’t it mean you need to add it.[/QUOTE]

I thought the same thing, but it turns out it is the other way around. Well, a bit…

I found the models completely on accident actually. I was trying to read the textures chunk (a chunk is a piece of data in the BSP file, and there are about 20 chunks each for different information) and I also got a short list of models! I still don’t know why they are there, but they are…

When I investigated it further though, it turned out those models are actually only the misc_models. They do not need to be in your pk3.

Besides a textures chunk however there is also an entities chunk, and while reading that I saw it looks more or less like the layout of a .map file. It’s just the entities in a list with each key/value pair between " quotes. It turns out that all the models in the entity list are misc_gamemodels. So all I needed to do was read the entity chunk, and extract the [path here] from all the “model” “[path here]” strings (or the “model2” “[path here]”).
I used regex to do that and it’s lightning fast… I don’t even need to check if the model is a misc_model or not because it is always a misc_gamemodel (at least in all the bsp’s I read, about 20…)


(Flippy) #30

Version 0.2 released!
Added Texture & Model import.

First post edited with new information, new screenshots and new download links.

I still need more mirrors, but I advice you to wait until people confirm that it does indeed work. I don’t want to cause trouble by uploading version 0.21 in 5 minutes when I realize I made a stupid mistake which causes it to stop working :tongue:


(Cambodunum) #31

… just a lil mirror for it:
… information including screenshots will be added soon

http://www.the-mad-com.de/downloads/PK3Creator_v02_setup.rar

greetz Cambo


(Flippy) #32

Thanks! Did you try it yet?


(nukits) #33

dude seriously thanks , its much easier to use , a lot of thanks !


(Cambodunum) #34

… yup tried a short run
… textures working fine :smiley:
… just not sure if the model-feature was working correctly
… gonna take a better look later (gtg to work now)

greetz Cambo


(Nail) #35

updated my mirror and links to latest version

http://ftp.freenet.de/pub/4players/hosted/et/tools/PK3Creator_v02_setup.rar

http://ftp.freenet.de/pub/4players/hosted/et/tools/PK3Creator_v02_source.zip.zip


(Magic) #36

Have installed it - but when i try to start it i get a error message.
“the program wasent right initialized (0xc0000135)”
The error message was in norwegian - so the translation could be a bit crappy :slight_smile:
I have reinstalled my computer the last days - maybe i miss some prog to use it?
I get the same message on both versions.


(Flippy) #37

[QUOTE=Nail;187851]updated my mirror and links to latest version

http://ftp.freenet.de/pub/4players/hosted/et/tools/PK3Creator_v02_setup.rar

http://ftp.freenet.de/pub/4players/hosted/et/tools/PK3Creator_v02_source.zip.zip[/QUOTE]
Thanks again!

[QUOTE=Magic;187852]Have installed it - but when i try to start it i get a error message.
“the program wasent right initialized (0xc0000135)”
The error message was in norwegian - so the translation could be a bit crappy :slight_smile:
I have reinstalled my computer the last days - maybe i miss some prog to use it?
I get the same message on both versions.[/QUOTE]
You need to install the .NET Framework, version 2.0 or later. Google it you will find the microsoft download site of the latest version :).


(Magic) #38

Thanks Flippy - that was it.
The program looks great - will have a closer look.

a mirror for you in return :slight_smile:

PK3Creator_v02_setup.rar


(Flippy) #39

[QUOTE=Magic;187854]Thanks Flippy - that was it.
The program looks great - will have a closer look.

a mirror for you in return :slight_smile:

PK3Creator_v02_setup.rar[/QUOTE]

Glad it works, and thanks for the mirror!


(Flippy) #40

I’ve spent a little time updating it again.

This time I changed the graphic appearance of the texture/model etc lists a bit again. Instead of the normal buttons to the right side taking up far too much space, the lists now fill the entire screen and the buttons are moved to a ToolStrip above the list. You can also change the View of the list, so far only between List and Details. List gives you a list of the items (also side by side if you got enough of them) while Details also shows the ‘Standard’ Yes/No list. I might add ‘Large Icons’ and ‘Tiles’ later, but I’ve got a bit of trouble with the icons for that…

I also changed the Arena and Objective Data File Generators so they actually read the existing arena / objdata file and fill the window with the information in those files.
So if you just generated an arena file and you made a mistake and want to go back, you can now just use the Arena File Generator again, which will automatically load the settings in the file for you, so you can simply edit it instead of creating it all over again.

I won’t be releasing a new version just for this yet though, need some more updates for that.

If anyone has any ideas they want to see, please tell me and I’ll see what I can do!