Blender Tools - Export Error (2021)

Post Reply
Sebastian7870
Posts: 6
Joined: 24 Dec 2017 15:10

Blender Tools - Export Error (2021)

#1 Post by Sebastian7870 » 01 Feb 2021 18:57

Hello!

I am not a complete beginner in ETS2 modding. I edited a mod (imported .pmds and exported them again a year ago). I had issues too but I did it somehow. But now I am stuck. :(

I get the following error message: "Error: Can't run conversion tools or there were errors by converting!"

I already now, how I can get the exported files: When I press >>> Pack Mod <<< a folder in the conversationTools will be created: conversationTools/rsrc/@chached
In that folder I can find the .pmd and .pmc files.

But I want to know why it does not work with the Blender Tools directly like in the tutorails. It's so annoying because I have a quite good model and I really want to know the reason for that error. I can't find any log files other than those in the picture.

- I watched the tutorials three times
- I did a very easy mod (just a cube as a frontgrill)
- I used three different Blender versions: 2.91.2 (Steam), 2.81 (Steam), 2.81 (non-Steam)
- I used two different conversation Tool versions (2.12, 2.10)

Can someone help me? Thank you!
Attachments
Unbenannt.PNG

Sebastian7870
Posts: 6
Joined: 24 Dec 2017 15:10

Blender Tools - Export Error (2021)

#2 Post by Sebastian7870 » 01 Feb 2021 19:11

Hello!

I have a problem when i export my mod for ETS2 with Blender-Tools. I am not a complete beginner and did the same things in the past (importing and exporting models for ETS2).
But now I can't pack my mod.
I get this error at conversation: "Error: Can't run conversion tools or there were errors by converting!"

Even though I know how I can get the converted .pmd and .pmc files manually (conversationTools/rsrc/@chached), I want to know why I can not pack my mod with the button completly like in all the tutorials and in the past. :shock:

I tried the following things:
-different Blender versions (2.91.2 (Steam), 2.81 (Steam), 2.81 (non-Steam))
-different ConversationTool versions (2.12, 2.10)
-different base- and conversationTool- path locations (C:/, P:/)
-a very easy mod (just a cube as an accessory for a truck) like in the tutorial.

==>> Everything works but mod packing does not work fully. I have to copy my .pmds manually out of the conversationTools/rsrc/@chached folder. I want to know why. :roll: :?:

Thank you.
Attachments
Screenshot 2021-02-01 200312.png
Screenshot 2021-02-01 200312.png (3.65 KiB) Viewed 368 times

Dotec
Posts: 312
Joined: 20 Dec 2012 15:52
Location: Stuttgart, Germany

Re: Blender Tools - Export Error (2021)

#3 Post by Dotec » 01 Feb 2021 20:27

post log file:
./conversation_tools/bin/win_x86/mass_convert.log
Image

Sebastian7870
Posts: 6
Joined: 24 Dec 2017 15:10

Re: Blender Tools - Export Error (2021)

#4 Post by Sebastian7870 » 02 Feb 2021 06:18

There is no logfile when I do it with blender...
The only thing that gets created is a linked folder. (picture)

But I noticed one thing: When I press 'pack mod' in blender I then can press _convert.bat (in conversationTools/bin/win_x86). After I pressed it everything gets converted and there are no errors but only in the @chached folder. (As I said it works manually but I want to know why it does not work automatically with blender).

So I thing the error occures because blender can't access the _convert.bat file. But I don't know why because they are in the same harddrive.

Here is the log from the MANUAL approach

Code: Select all

************ : log created on : Tuesday February 02 2021 @ 07:20:34
00:00:02.190 : [base] Massconverting the data (update)
00:00:02.191 : [base] Conversion finished in 0:00:03
************ : log created on : Tuesday February 02 2021 @ 07:20:37
00:00:01.902 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] Massconverting the data (update)
00:00:02.178 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] textcopy /def/vehicle/trailer_defs/krone.boxcarrier.dolly_1_1.container2.dlc_krone.sii 
00:00:02.179 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] textcopy /def/vehicle/trailer_owned/krone.boxcarrier/data.sii 
00:00:02.179 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] textcopy /def/vehicle/trailer_dealer/krone/krone_boxcarrier.sii 
00:00:02.179 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] textcopy /def/vehicle/trailer_owned/krone.boxcarrier/body/swapbody.sii 
00:00:02.179 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] textcopy /def/vehicle/trailer_owned/krone.boxcarrier/chassis/chassis.sii 
00:00:02.179 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] textcopy /def/vehicle/trailer_owned/krone.boxcarrier/chassis/chassis_dolly.sii 
00:00:02.179 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] textcopy /def/vehicle/trailer_owned/krone.boxcarrier/configurations/dolly_2.dlc_krone.sii 
00:00:02.179 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] textcopy /def/vehicle/trailer_owned/krone.boxcarrier/configurations/dolly_2/container.dlc_krone.sii 
00:00:02.179 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] textcopy /def/vehicle/trailer_owned/krone.boxcarrier/paint_job/color_custom.sii 
00:00:02.180 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] textcopy /def/trailer_storage.dlc_krone.sii 
00:00:02.180 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] textcopy /def/traffic_storage_trailer_semi.dlc_krone.sii 
00:00:02.180 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] textcopy /def/addon_hookup_storage.dlc_krone.sii 
00:00:02.180 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] textcopy /def/vehicle/trailer_owned/krone.boxcarrier/accessory/r_bumper/bumper_01.sii 
00:00:02.339 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] pit2pmd /chassis.pit 
00:00:02.339 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] pit2pmd /vehicle/trailer_owned/krone_boxcarrier/chassis.pit 
00:00:02.339 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] pit2pmd /dolly.pit 
00:00:02.339 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] pit2pmd /vehicle/trailer_owned/krone_boxcarrier/dolly.pit 
00:00:02.416 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] pim2pmg /vehicle/trailer_owned/krone_boxcarrier/dolly.pim %s -tangent -merge_part_pieces -optimize_for_vertex_cache
00:00:02.418 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] pim2pmg /dolly.pim %s -tangent -merge_part_pieces -optimize_for_vertex_cache
00:00:02.418 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] pim2pmg /vehicle/trailer_owned/krone_boxcarrier/chassis.pim %s -tangent -merge_part_pieces -optimize_for_vertex_cache
00:00:02.418 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] pim2pmg /chassis.pim %s -tangent -merge_part_pieces -optimize_for_vertex_cache
00:00:02.419 : [linked_bt_d8527f3d0b273365878d192326fbb0e2f3435d63] Conversion finished in 0:00:02
Addition: gameLog of .pmds in @chached folder (looks like models do not work with this "manual" method, only empty locators (as I have tested it before))

Code: Select all

00:04:25.241 : <ERROR> [fs] Failed to open file '/vehicle/trailer_owned/krone_boxcarrier/chassis.pmc' in the read_only mode.
00:04:25.241 : <ERROR> [resource_task] Can not open '/vehicle/trailer_owned/krone_boxcarrier/chassis.pmc'
00:04:25.241 : <ERROR> [model] Model collision '/vehicle/trailer_owned/krone_boxcarrier/chassis.pmc' is malformed.
00:04:25.243 : <ERROR> [fs] Failed to open file '/automat/80/.tobj' in the read_only mode.
00:04:25.243 : <ERROR> [resource_task] Can not open '/automat/80/.tobj'
Attachments
linkedFolder.png

User avatar
ONURKULL
Posts: 704
Joined: 19 Oct 2015 14:01
Location: Istanbul
Contact:

Re: Blender Tools - Export Error (2021)

#5 Post by ONURKULL » 02 Feb 2021 11:05

Delete .tobj files in SCS project base file and try again. You just edit parts (if not change material) already you don't need old .tobj file in SCS project base file.

Sebastian7870
Posts: 6
Joined: 24 Dec 2017 15:10

Re: Blender Tools - Export Error (2021)

#6 Post by Sebastian7870 » 02 Feb 2021 12:47

I deleted all .tobj files but it still does not work. Do I really have to cancel this project? I made a quite good looking model and now I can't export the mod?
It is so annoying.
But I will not give up that fast. I am currently looking in the python script files of the Blender tool and found a bit. I'll write a new message when I found something important.

Sebastian7870
Posts: 6
Joined: 24 Dec 2017 15:10

Re: Blender Tools - Export Error (2021)

#7 Post by Sebastian7870 » 02 Feb 2021 13:59

Hello again!

I found a fix for my problem so I want to share it.
1.) Check if you can switch to the conversationTool path with the command promt: (it works when C:\Users\...> switches to [Your conversationTool path]> (See images below))

Code: Select all

cd [Your conversationTool path]
1.1) If that does not work you have to move the conversationTool folder into the C: drive (if that is your default drive when you start the command prompt)
The reason for that is quite simple: https://superuser.com/questions/135214/ ... igate-to-d


2.) Open the following blenderTools script file: (default path: C:\Users\[YourUsername]\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\io_scs_tools\operators\scene.py)
2.1) Go to line 965 and change

Code: Select all

command = 'cmd /C ""' + os.path.join(main_path, "convert.cmd") + '""'
to

Code: Select all

command = '"' + os.path.join(main_path, "convert.cmd") + '"' + " cmd /C"
Attachments
PythonHelp.png
CmdHelp.png
CmdHelp.png (8.6 KiB) Viewed 216 times

Post Reply

Return to “Blender Tools”

Who is online

Users browsing this forum: No registered users and 4 guests