Alarak's Modding topic!

Improving the artwork in Warzone2100 - not for mod discussions
User avatar
Alarak
Rookie
Rookie
Posts: 22
Joined: 05 Feb 2016, 19:17

Alarak's Modding topic!

Post by Alarak »

Re-directed from "Models by Berg"

Hi Everyone.

Maybe I'm dropping in somewhat late with questions regarding modding.
I've already visited this site quite frequently in order to learn some stuff.

And yesterday, and just now I've been making my very first modding entries and making Warzone 2100 a game personalized for my touch.
I also have created plans to fully throw around some aspects such as models and the technology tree.

and yesterday I started with having success in making my Cobra Tank having a cooler more dark with some red linings body type and used it in my mod.
Today I also have been succesfull in converting the Python body to a second cobra like medium body which must receive some extra feature on the model. I used Blender to add some extra green bagage trays for a quick tryout. But now when I start up a game, the model shows up correctly, but there's no turret being displayed?

Can someone please help? its the only thing that current;y is stopping me, and I don't understand what happens here?


For info: I use WMIT for the model import/exporting including the textures, here I see no issues.
I use blender to work on the .obj files I make with WMIT.


Add: Someone called 'Stiv' said he needed more info... I was under the impression I was fairly clear in what the problem is.
If you ask me to be specific, then also please be specific in the answer.

Thanks.

*Edit: I changed the topic title. As I'm furthering myself through the world of Warzone 2100 modding I find a more broader topic (and title) will suffice.
Last edited by Alarak on 12 Feb 2016, 21:26, edited 1 time in total.
User avatar
Berg
Regular
Regular
Posts: 2204
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: Problems with proper display of unit models

Post by Berg »

Below is the pie file do note at the very end is connectors yopu need to replace them because they are the positioning points for turrets etc, without these the turrets have no place to be added to the model.
remember upon changing your model to replace the connectors list!

Code: Select all

PIE 2
TYPE 200
TEXTURE 0 page-14-droid-hubs.png 256 256
LEVELS 1
LEVEL 1
POINTS 12 
	-7 9 -34 
	7 9 -34 
	7 14 -34 
	-7 14 -34 
	-11 22 26 
	-14 9 28 
	-14 9 -14 
	-11 22 -14 
	10 22 -14 
	10 22 26 
	13 9 28 
	13 9 -14
POLYGONS 20
	200 3 3 2 1 35 3 51 3 51 10
	200 3 3 1 0 35 3 51 10 35 10
	200 3 7 6 5 38 24 26 24 26 0
	200 3 7 5 4 38 24 26 0 38 1
	200 3 0 6 7 26 35 26 24 38 24
	200 3 7 3 0 38 24 31 35 26 35
	200 3 2 3 7 12 36 2 36 0 25
	200 3 2 7 8 12 36 0 25 14 25
	200 3 10 9 4 51 10 52 0 62 0
	200 3 10 4 5 51 10 62 0 63 10
	200 3 6 11 10 26 24 14 24 14 0
	200 3 6 10 5 26 24 14 0 26 0
	200 3 0 1 11 23 35 17 35 14 24
	200 3 0 11 6 23 35 14 24 26 24
	200 3 8 7 4 13 24 1 24 1 1
	200 3 8 4 9 13 24 1 1 13 1
	200 3 11 8 9 26 24 38 24 38 1
	200 3 11 9 10 26 24 38 1 26 0
	200 3 1 2 8 26 35 31 35 38 24
	200 3 1 8 11 26 35 38 24 26 24
CONNECTORS 8
	0 10 23
	0 -25 13
	0 10 43
	0 0 0
	0 0 0
	0 -25 9
	0 10 9
	0 10 -11
User avatar
Alarak
Rookie
Rookie
Posts: 22
Joined: 05 Feb 2016, 19:17

Re: Problems with proper display of unit models

Post by Alarak »

Ok, that does sound logical.

How/where exactly do I find this list?
When I use WMIT I can only do very, veeery basic manipulation of the geometry, and even that causes Issues I discovered.
As it appears the .PIE files seem very disapproving of using scale, mirror and the like.
trevormanaze
Trained
Trained
Posts: 86
Joined: 18 Nov 2015, 04:21

Re: Problems with proper display of unit models

Post by trevormanaze »

.pie can be saved as .obj if you manually type it in.

Attempt with obj conversion, much more universal than pie .

I went .pie to .obj to .iprop

I have an animators cut-scene thread open, I am going to post there the iclone tool + 400 models converted for high render name of download file with sample backdrop of whats included. check out my posts there about how to get past .pie
User avatar
xShadow421x
Rookie
Rookie
Posts: 28
Joined: 13 Apr 2013, 17:22
Location: Earth

Re: Problems with proper display of unit models

Post by xShadow421x »

Follow Berg's advice for the initial problem you have specified. This list of data is essentially the .pie file itself; just open/edit the file with any text editor and you will see all of this data in it. As mentioned, the connectors data is usually lost in the conversion process from .pie to .obj, so you want to copy all of the connectors data as-is from the original model's pie file and paste the data into your new model's pie file in the same location anytime you're going to modify a model's physical geometry/mesh. Of course this typically applies just for objects where a separate object is appended to it such as this case with the bodies.
As far as WMIT, I'm not completely familiar with it unfortunately. I just use it to convert the files as needed and do all the geometry editing directly in Blender. So I personally wouldn't use it for anything else beyond simple scale adjustments if a model isn't the correct size.
ImageImageImageImage
User avatar
Alarak
Rookie
Rookie
Posts: 22
Joined: 05 Feb 2016, 19:17

Re: Problems with proper display of unit models

Post by Alarak »

Ok, than I'm going to try that. Any text editor huh, should be easy enough then. Thanks for the help so far! In the mean time I've had some successes with just replacing existing models with other bodies. And I did have luck with increasing a turret in size without problems. I'll see if I can showcase some of my work sofar soon.


Edit:
I just tried it out with by changing the Tiger body to an enlarged Cobra model with added green bags (on aft section)
and used the Connector point from the Tiger, and it worked.
Now I have to try and figure out how to change the values to point to the correct desired position :)

But this opens up a lot of abilities for me now!
Thanks again!
User avatar
Berg
Regular
Regular
Posts: 2204
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: Problems with proper display of unit models

Post by Berg »

As we dont have a model editor that can adjust connectors you will need to know that the connector format is XZY.
If you look at you points in the text editor you can roughly work out where you want a connector, refine by looking at the model in game...Bit lame I know but its what we have now!
User avatar
Alarak
Rookie
Rookie
Posts: 22
Joined: 05 Feb 2016, 19:17

Re: Problems with proper display of unit models

Post by Alarak »

Berg wrote:As we dont have a model editor that can adjust connectors you will need to know that the connector format is XZY.
If you look at you points in the text editor you can roughly work out where you want a connector, refine by looking at the model in game...Bit lame I know but its what we have now!
Yeah that was what I meant indeed.
well, it works pretty fine as far as I'm concerned. :D I get done what I want to get done.
User avatar
Alarak
Rookie
Rookie
Posts: 22
Joined: 05 Feb 2016, 19:17

Re: Problems with proper display of unit models

Post by Alarak »

On another note.
I'm trying to add new propulsion models which have different looks and are designed to fit with specific bodies.
I've found that I can change the code name in the "Body/Propulsion" section from the Stats editor.
I changed the name to my new track set (named: HvyTrack2) But when I then wanted to test out the model in-game, the game crashes on me, saying in the logfile it could found the IMD data.
what have I not done, which I apparently should? I rather not re-use existing model entries.
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: Problems with proper display of unit models

Post by Per »

If you are using 3.1, and are adding new stuff, then you need to list all new files in appropriate WRFs in data/{base|mp}/wrf/*.wrf This goes for new textures, new models, and so on.

If you are using git master version, then you do not need to do this, as it implements loading on demand of both textures and model files.
User avatar
Alarak
Rookie
Rookie
Posts: 22
Joined: 05 Feb 2016, 19:17

Re: Problems with proper display of unit models

Post by Alarak »

Per, I thank you kindly! I have the 3.1 + version, but by modifying the .wrf it worked fine for me.
Now I can get to business.

Edit 1:small question.
Parallel to the modding/modeling of the units etc. I also took it upon myself to change the pallette for team colors. They work in-game, but the minimap still shows the original colors for the players.
Does anyone know how to adress this?

Edit 2:Hereby I would like to showcase some preliminary work.
Photo 1: wheeled flamer light tank, wheeled light-cannon tank and two tracked light tanks.
Image

Photo 2: The complete first series, of light, medium, heavy and special tanks.
In the Top Viper Light Tanks, at the right a Cobra Medium Tank, then a Tiger Heavy Tank (mantis look-a-like)Then Top-left two special dual-weapon Crucion Tanks and all in the right-bottom a King Cobra Medium/heavy Tank (Retribution look-a-like)Image

As you can see I also changed some of the team color, featuring brown here.
I'm planning to redo most of the retextured bodies to actually have something new for the them, the Crucion Tank was my first real try.
Last edited by Alarak on 13 Feb 2016, 22:58, edited 1 time in total.
User avatar
Alarak
Rookie
Rookie
Posts: 22
Joined: 05 Feb 2016, 19:17

Re: Alarak's Modding topic!

Post by Alarak »

Photo 3: a brand new series is being started: the Pulsar Tanks.
A small group of light and medium vehicles.
Left line: wheeled medium repair unit and wheeled light sensor unit. On the right two light HPV tanks and in the middle a heavy HPV Tank.
Image

Photo 4: Commense the attack!
Image
User avatar
Alarak
Rookie
Rookie
Posts: 22
Joined: 05 Feb 2016, 19:17

Re: Alarak's Modding topic!

Post by Alarak »

Photo 5: Introducing a heavy version for the Pulsar Tanks.
And... The Monolith Battle fortress, a true powerhouse of a tank.
Image
Jorzi
Regular
Regular
Posts: 2063
Joined: 11 Apr 2010, 00:14

Re: Alarak's Modding topic!

Post by Jorzi »

Pretty cool :)
What about a neon-themed mod with glow-in-the-dark teamcolors, a bit like far cry blood dragon?
One would need to tweak the ambient light settings in the game to get night lighting, but then I could easily write a custom fragment shader to make the team color emit its own light.
ImageImage
-insert deep philosophical statement here-
User avatar
Alarak
Rookie
Rookie
Posts: 22
Joined: 05 Feb 2016, 19:17

Re: Alarak's Modding topic!

Post by Alarak »

Yeah I was attempting something aling those lines with this first run already. As I'm just getting started I still have to figure most stuff out om hows and wheres.
Like I mentioned above: I managed to change some teamcolors, but they no longer correspond with the minimap display. And I have, as you suggested, looked into making emissives for teamcolors (or just plain textures for that matter) similar to Starcraft II's Protoss units have. I hope to discover how to do those things somewhere in the near future.
But thanks for the support! :)
Post Reply