Jump to content

Recommended Posts

Posted

A few months ago I read about some sort of utility that you could run while your mission editor is open to view how objects look in the 3d world at the same time. You could rotate a truck 90 deg and it would update in the other window for instance.

 

I want to give it a try but can't find it now :( Anyone know of what I am talking about.

 

Thanks

Menessis

Posted (edited)

Witchcraft grief

 

I'm going through hell trying to get Mist/Witchcraft working so I can see ground objects in 3d mode.

I'm totally confused about the 'witchcraft.cmd' stuff...no such file exists or is that a Windows console command?

In my mission a little box "Main" shows on the upper left of the screen but clicking on it is useless.

The mission is hung unless I press the <ESC> key.

I'm assuming you start the mission then open the map but I'm probably totally wrong about that also.

There's a trigger set up with the "Do Script File" and the "Do action" after 1 sec. that's why I assume you start the mission first.

Here's the log file:Note the Witchcraft entry:01167.544 UNKNOWN main: witchcraft.start(_G)

=== Log opened UTC 2014-11-20 15:53:12

00000.000 INFO EDCORE: createSerialQueue IOQueue

00000.009 INFO VFS: Using 'Saved Games': "C:\Users\Jeff\Saved Games"

00000.010 INFO LAUNCHER: Launch command: C:\Program Files (x86)\Steam\steamapps\common\DCSWorld\bin\dcs.exe --noreplay --trackfile "C:\Users\Jeff\AppData\Local\Temp\DCS\LastMissionTrack.trk" "C:\Users\Jeff\AppData\Local\Temp\DCS\tempMission.miz"

01127.753 UNKNOWN main: locale: en EN

01127.765 UNKNOWN main: me_db_api creation started

01127.938 UNKNOWN main: MOD loading: ./CoreMods/aircraft/F-86/entry.lua

01127.939 UNKNOWN main: MOD loading: ./CoreMods/aircraft/F-86/F-86.lua

01127.940 UNKNOWN main: MOD loading: ./CoreMods/aircraft/F-86/Views.lua

01127.940 UNKNOWN main: MOD loading: ./CoreMods/aircraft/MiG-15bis/entry.lua

01127.941 UNKNOWN main: MOD loading: ./CoreMods/aircraft/MiG-15bis/MiG-15bis.lua

01127.941 UNKNOWN main: MOD loading: ./CoreMods/aircraft/MiG-15bis/Views.lua

01127.941 UNKNOWN main: MOD loading: ./CoreMods/aircraft/MiG-21BIS/entry.lua

01127.942 UNKNOWN main: MOD loading: ./CoreMods/aircraft/MiG-21BIS/Entry/Aw

01127.942 UNKNOWN main: MOD loading: ./CoreMods/aircraft/MiG-21BIS/Entry/Am

01127.944 UNKNOWN main: MOD loading: ./CoreMods/aircraft/MQ-9 Reaper/entry.lua

01127.944 UNKNOWN main: MOD loading: ./CoreMods/WWII Units/entry.lua

01127.945 UNKNOWN main: MOD loading: ./CoreMods/WWII Units/FW-190D9.lua

01127.946 UNKNOWN main: MOD loading: ./CoreMods/WWII Units/Views.lua

01127.946 UNKNOWN main: MOD loading: ./mods/aircraft/A-10C/entry.lua

01127.946 UNKNOWN main: MOD loading: ./mods/aircraft/Su-25T/entry.lua

01127.947 UNKNOWN main: MOD loading: ./mods/aircraft/TF-51D/entry.lua

01127.948 UNKNOWN main: MOD loading: ./mods/aircraft/TF-51D/TF-51D.lua

01127.948 UNKNOWN main: MOD loading: ./mods/aircraft/TF-51D/Views.lua

01127.949 UNKNOWN main: MOD loading: ./DemoMods/tech/CombinedArms/entry.lua

01127.949 UNKNOWN main: MOD loading: ./DemoMods/aircraft/A-10A/entry.lua

01127.949 UNKNOWN main: MOD loading: ./DemoMods/aircraft/A-10C/entry.lua

01127.949 UNKNOWN main: MOD loading: ./DemoMods/aircraft/F-15C/entry.lua

01127.950 UNKNOWN main: MOD loading: ./DemoMods/aircraft/F-86/entry.lua

01127.950 UNKNOWN main: MOD loading: ./DemoMods/aircraft/Flaming Cliffs/entry.lua

01127.950 UNKNOWN main: MOD loading: ./DemoMods/aircraft/FW-190D9/entry.lua

01127.950 UNKNOWN main: MOD loading: ./DemoMods/aircraft/Ka-50/entry.lua

01127.951 UNKNOWN main: MOD loading: ./DemoMods/aircraft/Mi-8MTV2/entry.lua

01127.951 UNKNOWN main: MOD loading: ./DemoMods/aircraft/MiG-21BIS/entry.lua

01127.951 UNKNOWN main: MOD loading: ./DemoMods/aircraft/P-51D/entry.lua

01127.951 UNKNOWN main: MOD loading: ./DemoMods/aircraft/Su-25A/entry.lua

01127.951 UNKNOWN main: MOD loading: ./DemoMods/aircraft/Uh-1H/entry.lua

01127.951 UNKNOWN main: PLUGINS START-------------------------------------------------

01127.951 UNKNOWN main: plugin: F-86F Sabre AI by Eagle Dynamics applied

01127.952 UNKNOWN main: plugin: MiG-15bis AI by Eagle Dynamics applied

01127.952 UNKNOWN main: plugin: MiG-21Bis AI by Leatherneck Simulations applied

01127.954 UNKNOWN main: plugin: World War II AI Units by Eagle Dynamics applied

01127.954 UNKNOWN main: plugin: A-10C Warthog by Eagle Dynamics applied

01127.954 UNKNOWN main: plugin: Su-25T by Eagle Dynamics applied

01127.955 UNKNOWN main: plugin: TF-51D Mustang by Eagle Dynamics applied

01127.955 UNKNOWN main: plugin: Combined Arms by Eagle Dynamics applied

01127.955 UNKNOWN main: plugin: Flaming Cliffs by Eagle Dynamics applied

01127.955 UNKNOWN main: plugin: A-10A by Eagle Dynamics applied

01127.955 UNKNOWN main: plugin: F-15C applied

01127.955 UNKNOWN main: plugin: F-86F Sabre by Belsimtek applied

01127.955 UNKNOWN main: plugin: FW-190D9 Dora by Eagle Dynamics applied

01127.955 UNKNOWN main: plugin: Ka-50 Black Shark by Eagle Dynamics applied

01127.955 UNKNOWN main: plugin: Mi-8MTV2 Hip by Belsimtek applied

01127.955 UNKNOWN main: plugin: MiG-21Bis by Leatherneck Simulations applied

01127.955 UNKNOWN main: plugin: P-51D Mustang by Eagle Dynamics applied

01127.955 UNKNOWN main: plugin: Su-25A by Eagle Dynamics applied

01127.955 UNKNOWN main: plugin: UH-1H Huey by Belsimtek applied

01127.955 UNKNOWN main: PLUGINS DONE--------------------------------------------------

01127.960 UNKNOWN main: ./MissionEditor/data/scripts/unitsclasses.lua loaded

01127.963 UNKNOWN main: ./MissionEditor/data/NewMap/classifier.lua loaded

01127.966 UNKNOWN main: me_db_api creation complete

01127.975 ERROR VFS: add_location {"My Missions", "C:\Users\Jeff\Saved Games\DCS\Missions\"}: path already added as "My Missions"

01129.785 ERROR DXGUI_EDGE_RENDER: Cannot load texture ''

01129.933 INFO SOUND: loaded 793 sdefs from ".\sounds\sdef"

01129.939 INFO SOUND: XAudio2: Using device ID:'{0.0.0.00000000}.{1ccced37-9b4f-4000-8cdf-e7e01aef5c80}' Name:'Speakers (High Definition Audio Device)', channels: 2

01129.939 INFO SOUND: XAudio2: channel layout: Headphones/Stereo

01129.953 INFO SOUND: Using SSE FTZ/DAZ mode.

01130.371 UNKNOWN main: Cannot load skin[windowHeaderSkin] from file [nil]

01132.535 UNKNOWN main: Mission C:\Users\Jeff\AppData\Local\Temp\DCS\tempMission.miz loaded

01132.625 UNKNOWN main: checking introduction C:\Users\Jeff\AppData\Local\Temp\DCS\tempMission.miz

01132.627 UNKNOWN main: introduction NOT found

01136.593 INFO EDTERRAINGRAPHICS3: lma: .///Bazar/Graphics/lma/edge_infrared.lua

01136.593 INFO EDTERRAINGRAPHICS3: lma: .///Bazar/Graphics/lma/edge_land.lua

01136.594 INFO EDTERRAINGRAPHICS3: lma: .///Bazar/Graphics/lma/edge_landheight.lua

01136.594 INFO EDTERRAINGRAPHICS3: lma: .///Bazar/Graphics/lma/edge_lights.lua

01136.595 INFO EDTERRAINGRAPHICS3: lma: .///Bazar/Graphics/lma/edge_map.lua

01136.595 INFO EDTERRAINGRAPHICS3: lma: .///Bazar/Graphics/lma/edge_mfd.lua

01136.596 INFO EDTERRAINGRAPHICS3: lma: .///Bazar/Graphics/lma/land3.1.lua

01136.596 INFO EDTERRAINGRAPHICS3: lma: .///Bazar/Graphics/lma/edge_shelf.lua

01136.831 UNKNOWN main: Mission C:\Users\Jeff\Saved Games\DCS\Missions\TrueBelievers#2.miz loaded

01141.102 ERROR DXRENDERER: DXDefTexture: failed to open file batumi_kdp_spec

01141.107 ERROR DXRENDERER: DXDefTexture: failed to open file batumi_hangar_spec

01167.543 UNKNOWN main: good_rule true

01167.543 WARNING LOG: 2 duplicate message(s) skipped.

01167.543 UNKNOWN main: ---------- addValuesToString -------------

01167.543 UNKNOWN main: 2

01167.544 UNKNOWN main: ---------- addValuesToString -------------

01167.544 UNKNOWN main: 69

01167.544 UNKNOWN main: ---------- addValuesToString -------------

01167.544 UNKNOWN main: So you think you're a hotshot for sinking a little power boat. Ok, hotshot, you need to knock out tha AAA at the True Believers mountain recruiting base.

01167.544 UNKNOWN main: ---------- addValuesToString -------------

01167.544 UNKNOWN main: Congratulations! You've knocked out their AAA Gun. Mission complete.

01167.544 UNKNOWN main: ---------- addValuesToString -------------

01167.544 UNKNOWN main: witchcraft.start(_G)

01167.680 UNKNOWN main: Mission C:\Users\Jeff\Saved Games\DCS\Missions\TrueBelievers#2.miz loaded

01167.793 UNKNOWN main: C:\Users\Jeff\Saved Games\DCS\Missions\TrueBelievers#2.miz saved

01192.175 UNKNOWN main: turning log false

01192.181 INFO SOUND: detaching sdef path ".\sounds\sdef\"

=== Log closed.

Edited by bigchump
Posted (edited)
Ian;2236596']Sounds like you did not modify MissionScripting.lua (or a subsequent DCS update overwrote your changes).

 

Did you follow the tutorial video? What is the first step that you cannot follow?

 

I couldn't read anything in the tutorial video but I did edit

MissionScripting.lua with the following:

 

witchcraft = {}

witchcraft.host = "localhost"

witchcraft.port = 3001

dofile(lfs.writedir()..[[scripts\witchcraft.lua]])

 

EDIT>Here is the error:00013.797 ERROR Lua::Config: load error Scripts/MissionScripting.lua:[string "C:\Users\Jeff\Saved Games\DCS\Scripts\witchcraft.lua"]:1: unexpected symbol near 'ï'.

Edited by bigchump
Posted (edited)
Ian;2236872']Double-check the contents of your witchcraft.lua. I can assure you that there is no 'ï' in there because I typed that file on my german keyboard which does not have that symbol' date=' so if yours has one there is something strange going on...[/quote']

 

I did Ian. I searched for that symbol and it's not there. That's what's weird! My keyboard doesn't have that symbol either and I did not edit your file.

I am using the Steam version and maybe something's going on there?

 

EDIT>The ascii code for that symbol is 139 decimal. I searched the file using a hex editor and couldn't find it. Can you provide me a link so I can download the file again in case it's corrupted?

Edited by bigchump
Posted
You can select full 1080p to watch the video. Just found that out now.

 

Menessis

 

Why didn't I think of that? This nightmare is driving me to drink and maybe that's the reason. I'm a stubborn s.o.b. and am bound and determined to get this thing working. Ever try to place objects on mountain terrain? Jeez...doing that without a 3d viewer is no fun.

Posted (edited)
Can you provide me a link so I can download the file again in case it's corrupted?

 

https://raw.githubusercontent.com/jboecker/dcs-witchcraft/master/witchcraft.lua

 

I am using the Steam version and maybe something's going on there?

I installed the steam version of DCS: World and added a Su-25T to my witchcraft test mission. Everything worked fine, so it's not the steam version's fault.

 

Have you done any other modifications to your DCS: World installation?

 

The only suggestions I can come up with at this point are to delete (or rename) your Saved Games/DCS folder and use Steam's "verify integrity of game files" feature to get back to a clean installation :(

 

EDIT: I am using Windows 7 64-bit by the way.

Edited by [FSF]Ian
Posted (edited)

Thanks Ian!

witchcraft.lua was indeed corrupted. I did a binary file compare on my original file and the one you linked me to and there were a lot of differences.

Here's my log entry on witchcraft:

00049.964 INFO SCRIPTING: initializing witchcraft...

and here are the errors:

00163.672 INFO SCRIPTING: Mist version 3.3.22 loaded.

00163.786 INFO SCRIPTING: could not send witchcraft: Socket is not connected

00163.786 INFO SCRIPTING: reconnecting to localhost:3001

00163.872 INFO SCRIPTING: could not send witchcraft: Socket is not connected

 

I got a bunch of the "could not send witchcraft" errors and don't have the foggiest idea what's going on here....?

I'm running w8.1/64 and will try the verify files thing from Steam.

 

I haven't made any changes at all to my DCS install except create a few A-10c missions which I worked hard on and don't want to lose.

 

EDIT> I did an uninstall and re-installed everything but the same errors occur:

00023.963 INFO SCRIPTING: could not send witchcraft: Socket is not connected

00023.963 INFO SCRIPTING: reconnecting to localhost:3001

00024.066 INFO SCRIPTING: could not send witchcraft: Socket is not connected

00024.066 INFO SCRIPTING: reconnecting to localhost:3001

00024.167 INFO SCRIPTING: could not send witchcraft: Socket is not connected

00024.167 INFO SCRIPTING: reconnecting to localhost:3001

00024.270 INFO SCRIPTING: could not send witchcraft: Socket is not connected

00024.270 INFO SCRIPTING: reconnecting to localhost:3001

00024.356 INFO SCRIPTING: could not send witchcraft: Socket is not connected

 

I've got to be doing something wrong to get errors like these.

I will replay your video tutorial @ 1080p so I can really see what it is that I'm doing wrong.

Edited by bigchump
Posted

00163.786 INFO SCRIPTING: could not send witchcraft: Socket is not connected

00163.786 INFO SCRIPTING: reconnecting to localhost:3001

00163.872 INFO SCRIPTING: could not send witchcraft: Socket is not connected

 

That means it's trying to contact the server (which is a very good thing because it means there is probably nothing wrong within DCS anymore). It is failing because it could not connect and is constantly trying again.

 

By the way: during normal operation, you will get a bunch of these errors with "timeout" as the reason; that is a known bug I simply have not bothered to fix yet.

 

You probably just forgot to start the server component. Simply double-click "witchcraft.cmd", which is found in the "windows" subfolder of the archive you downloaded from GitHub.

 

After that is started, you should be able to point your web browser at http://localhost:3000 and get a result.

Posted
Ian;2237506']That means it's trying to contact the server (which is a very good thing because it means there is probably nothing wrong within DCS anymore). It is failing because it could not connect and is constantly trying again.

 

By the way: during normal operation, you will get a bunch of these errors with "timeout" as the reason; that is a known bug I simply have not bothered to fix yet.

 

You probably just forgot to start the server component. Simply double-click "witchcraft.cmd", which is found in the "windows" subfolder of the archive you downloaded from GitHub.

 

After that is started, you should be able to point your web browser at http://localhost:3000 and get a result.

 

You're right. I didn't start the server component. I have no luck with the localhost:3000 - it refuses my connection. The video keeps getting interrupted by annoying ads and the sound from them runs in the background and I can't hear a word you are saying. What is "node.exe" and do I need to use it?

Posted
The video keeps getting interrupted by annoying ads and the sound from them runs in the background and I can't hear a word you are saying.

 

I have uploaded the video to my Dropbox:

https://dl.dropboxusercontent.com/u/12866830/screencasts/witchcraft-howto.mp4

 

The server component of DCS: Witchcraft is implemented in node.js, which is a JavaScript environment meant for server applications. node.exe is the interpreter executable that is called by witchcraft.cmd to run the application; if the windows firewall asks about node.exe, make sure it does not block it.

Posted
Ian;2237554']I have uploaded the video to my Dropbox:

https://dl.dropboxusercontent.com/u/12866830/screencasts/witchcraft-howto.mp4

 

The server component of DCS: Witchcraft is implemented in node.js, which is a JavaScript environment meant for server applications. node.exe is the interpreter executable that is called by witchcraft.cmd to run the application; if the windows firewall asks about node.exe, make sure it does not block it.

 

The video is MUCH clearer now. I can read and hear everything.

I'm up and running now and very happy.

Thanks, Ian

  • 1 month later...
Posted

Well I finally got brave enough to go ahead and give this Witch Craft a try. A few problems.

I don't know how to resize the DCS window? I switched it to window mode but It's a full size window. So I went to plan B...I fired up the old XP machine which is on my network. Got it showing the mission. (to my surprise) But I have to share the mission folder so I can save it.

 

The only other problem I have is for some reason the F11 key, even though it is set for the free airbase view doesn't do anything. Any thoughts as to why that is??

 

Menessis

Posted
I don't know how to resize the DCS window?

 

Even if you uncheck "fullscreen", if the resolution you specify matches your screen resolution, it will display in a borderless window that does not allow you to resize it. Try specifying a resolution that is lower than your screen size (e.g. 1280x720) in the DCS options.

 

The only other problem I have is for some reason the F11 key, even though it is set for the free airbase view doesn't do anything. Any thoughts as to why that is??

 

Menessis

 

Try clicking a unit on the F10 map, switching to its outside view with F7 and then pressing Ctrl+F11 to switch to the free-roaming camera at that position.

 

I think some settings in the mission file may prevent you from using certain camera modes so you can't go spy on your enemies.

Posted

Hi Ian. OK I just tried the F-11 again. I did go in and set the mission options to allow external views and would have bet money that it was fixed. But it isn't :(

 

Changing the resolution was going to be my next thing to try.

 

All in all I think this is a great utility!

 

Menessis

  • 2 weeks later...
Posted

"Neck" figured out that I need to turn on the F-11 view under the options\misc.

 

Now I go to use WitchCraft and have to back track because of the DCS update. Got that fixed. But now it won't save the file after I tweek things???

 

Sorry for being a PITA!

 

Menessis

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...