|
Post by phatsam on Sept 17, 2010 3:30:36 GMT -5
Wow so much problems just for changing textures. At this rate I doubt anyone will ever be able to model anything for this game. We might as well make our own trucking game at this rate. Hey who has source engine experience maybe we can look at making our own game using source engine.
|
|
|
Post by ksquared on Sept 17, 2010 15:20:38 GMT -5
Source would be terrible for it. There are some people making a good truck game. See the "Headlight game" post in the "Hangout" section. That should be good when it's done. The devs claim it will be modeable, so you'll be able to replace trucks with ones you like if you want to.
|
|
|
Post by phatsam on Sept 17, 2010 18:22:11 GMT -5
Oh yea I forgot about that game. But why would source be terrible for it?
|
|
|
Post by Hardtruckisthebest on Sept 17, 2010 18:46:37 GMT -5
Hm. Even if you only make changes to the skin of the truck itself? Since I did check the boundaries (nothing is written outside of the texture data) and I was able to reproduce the crash anyways, it means that changing the texture data is really responsible, and not some error in programming. That's bad. I thought it might be something with alpha, but if you can get a crash with the screen, where we know that alpha channel is used for chrome, then this is really, really bad. There might be some hashes or CRC checks that I'm not paying attention to. I really hope that's not the case, because I have no clue where to start looking for that. P.S. I did just discover that I was parsing WDB files completely wrong... But it still wouldn't have any impact on the textures. It's as if the modified textures caused some kind of memory leak or something.. If you're in the game and you load the modded texture too many times (IE flipping thru the paintjobs in the repair shop, etc.) then the game crashes. It's a wierd ass error.. but if we can't make it load a save-game, then it's basically a nail in the coffin for this.. it defeats the purpose of having mods if you can't load the savegames. This is the most poorly coded horrible P.o.S. game Ive ever seen
|
|
|
Post by phatsam on Sept 17, 2010 19:55:46 GMT -5
I dont get it, I can load my save games just fine.
|
|
|
Post by ksquared on Sept 17, 2010 20:00:25 GMT -5
But why would source be terrible for it? Map size limits that aren't convenient to work around is the biggest reason. It's as if the modified textures caused some kind of memory leak or something.. That's what it looks like. I'll run more tests over the weekend. Try to copy/paste data directly from some .dds files, see what happens. P.S. I found another index list. So now, I think, I have a handle on where all of the offset-specific data is. I should be able to resize textures. Not that it matters if I can't figure out why the thing crashes.
|
|
remo801
Warehouse Extender
Posts: 4
|
Post by remo801 on Sept 18, 2010 20:21:23 GMT -5
Hi Guys, K^2 thank you for WDB tool, powerful stuff ... just magic !! It's as if the modified textures caused some kind of memory leak or something.. If you're in the game and you load the modded texture too many times (IE flipping thru the paintjobs in the repair shop, etc.) then the game crashes. It's a wierd ass error.. but if we can't make it load a save-game, then it's basically a nail in the coffin for this.. it defeats the purpose of having mods if you can't load the savegames. This is the most poorly coded horrible P.o.S. game Ive ever seen Same here, by flipping through the skins, the game crashes. And it get worse, if you replaced more skins than one for the same truck model. The use of chameleon effect in truckstore on replaced skin also ends up with a freeze crash, just like java won't get fooled. What I wonder is, by using the WDB Preview tool, there was 5 to 8 times the same skin in different sizes (from big to tiny size). Would that mean, the game uses 5 to 8 LOD's for a truck? If that's correct, would replacing all of those with modded skins fix this freeze chrashes? What also bugs me, I change a skin, change the brand, the details, the alpha channel to fit the new brand and details, but instead KENWORTH the reflection is TITAN ... what do I wrong? I'm using Photoshop CS4 for skinning. Heres the shot to it. Look at the KENWORTH on the fender, the reflection still is TITAN: 
|
|
|
Post by Hardtruckisthebest on Sept 18, 2010 20:25:57 GMT -5
What also bugs me, I change a skin, change the brand, the details, the alpha channel to fit the new brand and details, but instead KENWORTH the reflection is TITAN ... what do I wrong?  remo that could be modelled underneath.. or its a bump map. But tell me something.. can you load your savegames with that modded truck?
|
|
|
Post by ksquared on Sept 19, 2010 2:21:36 GMT -5
What I wonder is, by using the WDB Preview tool, there was 5 to 8 times the same skin in different sizes (from big to tiny size). Would that mean, the game uses 5 to 8 LOD's for a truck? If that's correct, would replacing all of those with modded skins fix this freeze chrashes? These are mip-maps. The purpose is slightly different than LOD, but yeah, it's sort of like that. The program I posted here actually generates these automatically. It replaces every copy individually with a scaled version of the texture you are importing. You can see that if you run WDB Preview on modded file. So no, that shouldn't be a problem unless I messed something up. I got a bit distracted working with meshes. Made some progress, but I'm still some ways away from making a viable exporter, let alone importer.
|
|
remo801
Warehouse Extender
Posts: 4
|
Post by remo801 on Sept 19, 2010 6:00:14 GMT -5
remo that could be modelled underneath.. or its a bump map. But tell me something.. can you load your savegames with that modded truck? Yes, loading savegame with this modifications works here. I had updated the JVM folder with the latest Java update content. Before that the game crashed by loading savegame with modded content. Sometimes it happens, the Game freezes by first load of savegame, but the second try works than. @hardtruckisthebest, sorry, I don't understand: What exactly do you mean with "that could be modelled underneath.. or its a bump map" ? Do you mean, the main source for these reflections are stored somewhere else?  Did you had success to kill that? @ k^2: Well, I'm not a programmer, so your awesome work is magic for me  I also modded some content in 1C Maddox game IL-2 Sturmovik 1946, it's also based on Java with openGL but can also be played with directX. The Game content is packed in .SFS files The first MOD was to hack the wrapper.dll (by QTim), that allows to load additional Files from a MODS Folder and/or a FILES Folder before all others. He also wrote an SFS extractor, so we was able to unpack the needed files we wanted to change, and placed them unpacked into the MODS Folder (Root Dir) with the ingame hierarchy. The loading time expands, but it works. This system could work here to, a file that allows extern content in fix hierarchy, and load the extern source bfore all other files. Would it work this way?
|
|
|
Post by ksquared on Sept 19, 2010 6:21:53 GMT -5
Maybe. I have not yet looked at how the resources are actually loaded. Only played with the format.
Why is that system better than simply replacing the .wdb files?
At any rate, this is useless if you cannot create new content. And to do that you need some way to convert between the data stored in .wdb files and something you can edit.
Edit: I think the "Titan" reflection is simply from the alpha channel underneath. Alpha channel is used to set reflectivity of the texture. See if that's the case.
|
|
|
Post by Hardtruckisthebest on Sept 19, 2010 12:05:29 GMT -5
@hardtruckisthebest, sorry, I don't understand: What exactly do you mean with "that could be modelled underneath.. I think the letters are 3d-modelled. I know the emblem on the t2000's grille is modelled. Now yesterday I spent a lot of time trying to figure out why my saved games don't load.. I tried 2 different versions of the game, I tried different trucks, I tried everything. It works for Phatsam, and it doesn't work for me.. So I'm completely lost right now. I'll try the java thing, even though i fucking hate java cause its always given my computers problems. If that doesn't work, then I'm not going to mod this game unless K2's improved program somehow fixes everything, which it might not. edit/ i tried the java too now, didn't fix anything. I'm at a loss, I give up for now
|
|
|
Post by ksquared on Sept 19, 2010 18:13:50 GMT -5
Hm. That's something I can check. In fact, I might be able to get rid of the "Titan" thing if it's modeled. I'll take a look at it.
|
|
|
Post by phatsam on Sept 19, 2010 18:26:45 GMT -5
I dont get it ivan, I works for me. I have only had the game crash once for me and that was my fucking around with the the game. Your T2000 didn't crash my saved game, I will keep testing though and see if it crashes for me. But like I told you, I didn't even know the game was crashing for you guys, I been driving around with my red argosy for a while now doing the storyline.
|
|
|
Post by Hardtruckisthebest on Sept 19, 2010 23:47:30 GMT -5
I know, it's something wierd thats only affecting me on my computer.. i dont know, i tried everything I could think of now... still, whatever it is, it only does it with a modded truck.. so hopefully with the new filter for the textures, it'll go away.. k2 can make them more identical to the originals or something..
im sure it'll get resolved sooner or later
|
|