L2Tower Discord Let's keep the community alive with discord. Discussions about plugins and scripts L2Tower Discord

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
1.4.1.119/120 bug in this:Include
Author Message
kerberos464 Offline
Bug revealer

Posts: 1,539
Joined: Jun 2012
Reputation: 576
Version: 1.4.3.143
Post: #1
1.4.1.119/120 bug in this:Include

this:Include() doesn't work at all now :/

i put this:Include("1.lua") into some script, then execute it, but 1.lua doesn't get executed.

and as before, this:Include(GetDir() .. "scripts\\subdir\\1.lua") is crashing l2 client.

Everything is possible. The impossible just takes longer.
04-06-2014 23:07 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ClockMan Offline
All Mighty
*******

Posts: 2,886
Joined: Jan 2011
Reputation: 499
Version: 1.4.3.143
Post: #2
RE: 1.4.1.119/120 bug in this:Include

this:Include("subdir\\1.lua"); don't work ?
check logs what type of crash it is...


if not - then I will look into that tomorrow...

[Image: owner.gif]
(This post was last modified: 04-06-2014 23:11 PM by ClockMan.)
04-06-2014 23:09 PM
Visit this user's website Find all posts by this user Quote this message in a reply
kerberos464 Offline
Bug revealer

Posts: 1,539
Joined: Jun 2012
Reputation: 576
Version: 1.4.3.143
Post: #3
RE: 1.4.1.119/120 bug in this:Include

no, this is not working, but with different behavior:

if subdir\\1.lua is exist, then this:Include("subdir\\1.lua") runs without error, but 1.lua is not executing.

if subdir\\1.lua is not exist, l2 client is crashing, Critical..zip created in reports folder, in GameError.log i see this (not sure if it will help) :
INFO: Assertion failed: Defaults.Num() [File:f:\work\gd\gd35_0828\warfare2110\core\inc\UnClass.h] [Line: 551]


what i want from this:Include is to have some .lua and be able to load it from any script and plugin (a lot of functions in this lua).

Everything is possible. The impossible just takes longer.
04-06-2014 23:41 PM
Visit this user's website Find all posts by this user Quote this message in a reply
penetrafox Offline
Goblin Grave Robber
*

Posts: 10
Joined: May 2013
Reputation: 0
Version: 1.4.3.143
Post: #4
RE: 1.4.1.119/120 bug in this:Include

bug auto ress not ress

anyone have a script auto accept ress ?
(This post was last modified: 04-07-2014 02:14 AM by penetrafox.)
04-07-2014 00:33 AM
Find all posts by this user Quote this message in a reply
mardukx Offline
VIP Member
***

Posts: 240
Joined: Jan 2012
Reputation: 0
Version: 1.4.2.142
Post: #5
RE: 1.4.1.119/120 bug in this:Include

full bug!!!! this version...................not accept the res.... and a lot of bugs more

for now I downgrade the version to 119

the bugs continue.....

all scripts craped....rez autopin etc...
(This post was last modified: 04-07-2014 06:21 AM by mardukx.)
04-07-2014 06:13 AM
Find all posts by this user Quote this message in a reply
ClockMan Offline
All Mighty
*******

Posts: 2,886
Joined: Jan 2011
Reputation: 499
Version: 1.4.3.143
Post: #6
RE: 1.4.1.119/120 bug in this:Include

crash because exception is throw, I wil add capture today...

[Image: owner.gif]
04-07-2014 09:15 AM
Visit this user's website Find all posts by this user Quote this message in a reply
 Reputed by : kerberos464(+2)
mardukx Offline
VIP Member
***

Posts: 240
Joined: Jan 2012
Reputation: 0
Version: 1.4.2.142
Post: #7
RE: 1.4.1.119/120 bug in this:Include

(04-07-2014 09:15 AM)ClockMan Wrote:  crash because exception is throw, I wil add capture today...

please =( fix it Sad
04-08-2014 02:57 AM
Find all posts by this user Quote this message in a reply
kerberos464 Offline
Bug revealer

Posts: 1,539
Joined: Jun 2012
Reputation: 576
Version: 1.4.3.143
Post: #8
RE: 1.4.1.119/120 bug in this:Include

(04-07-2014 09:15 AM)ClockMan Wrote:  crash because exception is throw, I wil add capture today...
@ClockMan, thank you very much, no more crashes now Smile
but there is another issue: when this:Include couldn't load file for any reason, it doesn't give any error, it just skips included file

could you please make it generating error when file failed to load, like dofile does?
thanks!

oh, it's even worse :/
for example i run: this:Include("file.lua")
now, if file.lua has any error, file.lua script just silently stops without reporting an error.

Everything is possible. The impossible just takes longer.
(This post was last modified: 04-10-2014 09:40 AM by kerberos464.)
04-10-2014 08:54 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ClockMan Offline
All Mighty
*******

Posts: 2,886
Joined: Jan 2011
Reputation: 499
Version: 1.4.3.143
Post: #9
RE: 1.4.1.119/120 bug in this:Include

this:Include returns true on success, false on fail.

file.lua should be in scripts folder.
make /dump and check if there are some errors related to file.lua

[Image: owner.gif]
04-10-2014 17:41 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Reports include screenshot of whole screen. drag0nius 5 3,719 04-09-2012 22:12 PM
Last Post: drag0nius



User(s) browsing this thread: 1 Guest(s)