Need documentation for runecl.

Bug reports and feature requests. New features can only be added to the current development version. Bug-fixes may be back-ported.

Current release: 099 / Current development: 100
Post Reply
Yukiko
Distro Developer
Posts: 2506
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Need documentation for runecl.

Post by Yukiko » Mon Dec 11, 2017 1:12 am

I am trying to help my son with a problem. He is working on a project to help another shard and they are missing some SRC files for their shard. It was suggested by a Core developer that we try runecl, using switch -v, for a clue as to what those scripts do so my son can try to recreate them as SRC files. He was having problems with runecl. As that shard is running an earlier version of the Core I decided to see if I could get runecl to work on a compiled file from the Distro under the current Core. My thoughts were that perhaps his version of runecl was bugged. I could not get runecl to execute properly. As you can see from the output below one error is that it cannot find module uo.
Here is what I entered at the command line and the corresponding output from runecl:

Code: Select all

D:\DistroDev2\scripts>runecl -v D:\DistroDev2\scripts\misc\logon.ecl
EScript Executor v1.12
Copyright (C) 1993-2016 Eric N. Swanson

WARNING: D:\DistroDev2\scripts\misc\logon.ecl: Unable to find module uo
Assertion Failed: prog_ok_, executor.cpp, line 3448
failed to open logfile log/start.log

##########################################################
Current StackBackTrace
(function-name not available) - 0x140087957
  (filename not available)
(function-name not available) - 0x1400856af
  (filename not available)
(function-name not available) - 0x14006be3a
  (filename not available)
(function-name not available) - 0x14006b992
  (filename not available)
(function-name not available) - 0x1400495bd
  (filename not available)
(function-name not available) - 0x1400399f3
  (filename not available)
(function-name not available) - 0x1400395a0
  (filename not available)
(function-name not available) - 0x140038cdf
  (filename not available)
(function-name not available) - 0x140083328
  (filename not available)
(function-name not available) - 0x14003a413
  (filename not available)
(function-name not available) - 0x14008df39
  (filename not available)
BaseThreadInitThunk - 0x7ffe55bc1fe4
  (filename not available)
RtlUserThreadStart - 0x7ffe5845ef91
  (filename not available)
##########################################################
getaddrinfo() failed for "polserver.com" due to "Either the application has not called WSAStartup, or WSAStartup failed. "(code: 10093)
This is using the latest Core build.
If I am doing something wrong PLEASE tell me.
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

bodom
POL Developer
Posts: 136
Joined: Sat Feb 21, 2015 7:52 pm
Location: Italy

Re: Need documentation for runecl.

Post by bodom » Mon Dec 11, 2017 2:10 am

Some time ago, I wrote an escript decompiler.

Basically, it takes and .ecl and gives you back and .src and .inc (doing some guessing for the .inc part).

Bad news is that it was meant for POL093, so it will not work on POL099, good news is that to make it work, you should only need to remap tokens in bytecode (since during the years, somebody instead of adding new tokens at the end, inserted them in the middle, shifting everything up/down): that should be doable in a few hours of Python coding.

PM me if you need it.

Post Reply