Welcome to Black Liquid Software

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • 0
Sign in to follow this  
Followers 0
Necora

1 Build.bat crashes when compiling textures...why?

Hello

So I have made a few buildings that I would like to see in game, but am having a bit of trouble compiling.

I am following @Discrepancy's tutorial at WOB, and am testing out by making the building I made into a house (it is meant to be a blacksmith but keeping it simple...).

I have followed the tutorial to a tee, but when I run "1 Build.dat' it crashes when compiling the texture.rsc. Attached is a screen shot of as far as it gets.

Any ideas why this is? I have double and triple checked the names and they all match up. Could it be an issue with the .png?

Compiling Crash.jpg

Share this post


Link to post
Share on other sites

6 answers to this question

  • 1

So after some playing around it seems the crash issue arose when scaling the model down to make it a better size. Unfortunately I saved over the pre-scaled version (big lesson right there...) so I made another model from scratch to see. It worked fine when loading it in the game the first time, but was too large. So instead of scaling it down using the transform option on the object view, I went into edit mode and re-arranged every piece (there were not many, so it didn't take too long). When I re-built the mod and loaded it up, it worked fine with no crashes. This pics are the smaller version, although it is still a little too large in relation to the buildings IRL.

PEIShoreBuildStages.jpg

PEIShore.jpg

This one is meant to be a shore fisher, eventually, but for the moment is a mini house. The textures on the triangle faces still didn't come out properly. I'll start a new question thread for that!

Thanks for your help all.

Edited by Necora
1 person likes this

Share this post


Link to post
Share on other sites
  • 0

Make sure your textures following power 8 sizing I.e. 128x128, 256x256, 512x256.... you get the idea.

Also if you're using alpha transparent textures set your in game directx to 9, not 10 or 11 (or whatever the higher one is, I forget). 

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

Thanks for that. It was a combination of the .png not being the same each side and also too large I think.

So I got it working, and got it into the game. However, the textures were very bright, you could just make out the details but it looked like the building was shining. It also needed scaling down. I scaled it down, re-built it, but now cannot execute the "2 run.bat" with out it either a) freezing on start up, or b) crashing when I click the button to select the building. Attached is a screen shot of the error. 

It would seem somewhere along the line I changed something.... but I can't figure out what.

Clipboard01.jpg

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, Necora said:

I scaled it down, re-built it, but now cannot execute the "2 run.bat" with out it either a) freezing on start up, or b) crashing when I click the button to select the building. Attached is a screen shot of the error. 

If it is crashing when you click on the building it is more likely an issue within the template file, or some UI element. Double check your template files for inconsistencies with vanilla buildings. Otherwise don't hesitate to send me a private message (or post here if you wish) with your template files, I can look them over and might be able to see the issue.

2 people like this

Share this post


Link to post
Share on other sites
  • 0

Alrighty, I don't think it was the UI or template, I went through them and re-made the whole thing from scratch and it still crashed. I was, however, having trouble compiling the texture aspect of the model, and mainly due to .rsc not being found. It was looking for 'PortRoyalTailorTextures.rsc' but I had 'PortRoyalTailorTexture.rsc'. Now if I renamed it with the 's' on the end, '1 build.bat' finished with no problems, but the game crashed. I had a look through but could not figure out why it was looking for 'Textures' not 'Texture' until I realized it was reading it from the name of the material or texture part of the model, not from any of the .rsc files. I went into the model, removed the texture images, renamed the material, texture, and .png images just 'PortRoyalTailor' and changed the respective instances in the .rsc files and bingo! We have a fully functional house.

Screenshot0.jpg

Screenshot1.jpg

Now there are a few problems, it was originally build for a 3x3 tile but after scaling it down it is now only 2x2, so that needs to be updated. Also, some of my face edges are mis-aligned in the texture area so need to be moved around (the side roof should be shingles and there are parts of the chimney missing). Oh, and the smoke comes out from too low in the chimney.

So I will fix those, then use what I have learnt to see what is wrong with the blacksmith.

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

Hmm... I made them 2x2 but now the building is offset slightly. If I play normally, they builders don't build it, and if I use debug, place with no build cost, and run the game, it crashes when they try to move in. Ideas?

Edit 1 - also the textures in blender line up perfectly, not sure why the side of the roof and the chimney are wrong/missing in game.

Edit 2 - So I have tried a few footprint sizes 2x3 (with a road) and 3x3 (no road). In both instances the building centers to the middle of the squares (so in the 2x3 version it is overlapping the road tiles by 1/2). I'm not sure if this is why it is crashing or how to figure out the problem with the location.

p.s. apologies for the constant questions! Screenshot2.jpg

Edited by Necora

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0