Author Topic: Lua Extension: Console Debug window for Ptokax  (Read 2704 times)

0 Members and 1 Guest are viewing this topic.

Offline bluebear

  • Double Ace
  • *
  • Posts: 116
  • Karma: +12/-0
  • Life is a bitch - And then you marry one!
Lua Extension: Console Debug window for Ptokax
« on: 15 October, 2005, 22:40:27 »
hey again peeps...

I coded a console window for ptokax.
So you can output string data to the console,
this is very usefull when debuging scripts.

Screenshot + download + info here: http://www.thewildplace.dk/lua/pxdbgc/

Enjoy,
bluebear
Sincerely,
bluebear
--
http://www.thewildplace.dk/ is is closed - Use the following mirrors instead
http://bluebear.psycho-chihuahua.net
http://pxextension.piratez.dk/
[Lua extensions - Chat stats - YnHub PMSpy - DC Source code - and more]

PtokaX forum

Lua Extension: Console Debug window for Ptokax
« on: 15 October, 2005, 22:40:27 »

Markitos

  • Guest
(No subject)
« Reply #1 on: 16 October, 2005, 09:18:44 »
I didn't understand this part
Code: [Select]
print("Counting from 0 to 90000...\n")
    i = 0
    while i <= 90000 do
        print("\b\b\b\b\b", i)
        i = i + 1
    end
    print("\n")

Why does it have to count to 90000 and in this time the hub says connection refused by target machine?


Respectfully
« Last Edit: 16 October, 2005, 09:19:59 by Markitos »

Offline bluebear

  • Double Ace
  • *
  • Posts: 116
  • Karma: +12/-0
  • Life is a bitch - And then you marry one!
(No subject)
« Reply #2 on: 16 October, 2005, 11:35:26 »
Quote
Originally posted by Markitos
I didn't understand this part
Code: [Select]
print("Counting from 0 to 90000...\n")
    i = 0
    while i <= 90000 do
        print("\b\b\b\b\b", i)
        i = i + 1
    end
    print("\n")

Why does it have to count to 90000 and in this time the hub says connection refused by target machine?


Respectfully

Ahh, it has no purpose at all, other then showing how
do a count in console.

debugconsole.lua is only a test script that shows how to use the PxDbgC.dll.

If you'r a scripter, and need debug output when writeing you'r scripts. You can use the debugconsole.lua too see how you can implement it into a debug phase of your script.

//Bluebear
Sincerely,
bluebear
--
http://www.thewildplace.dk/ is is closed - Use the following mirrors instead
http://bluebear.psycho-chihuahua.net
http://pxextension.piratez.dk/
[Lua extensions - Chat stats - YnHub PMSpy - DC Source code - and more]

Offline bluebear

  • Double Ace
  • *
  • Posts: 116
  • Karma: +12/-0
  • Life is a bitch - And then you marry one!
(No subject)
« Reply #3 on: 16 October, 2005, 11:37:17 »
btw. PxDbgC.dll should only be used for developing. And should not be used in released scripts.
Sincerely,
bluebear
--
http://www.thewildplace.dk/ is is closed - Use the following mirrors instead
http://bluebear.psycho-chihuahua.net
http://pxextension.piratez.dk/
[Lua extensions - Chat stats - YnHub PMSpy - DC Source code - and more]

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 730
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
(No subject)
« Reply #4 on: 16 October, 2005, 12:51:35 »
This should be compiled into PxLUA.dll. ;)
Everything could have been anything else and it would have just as much meaning.

Offline plop

  • Forum God
  • ****
  • Posts: 2 464
  • Karma: +37/-0
(No subject)
« Reply #5 on: 16 October, 2005, 16:17:09 »
the way it should be used.
Code: [Select]
if tSql._Debug then
libinit = loadlib("libs\\PxDbgC.dll", "_libinit")
libinit()
end

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

Markitos

  • Guest
(No subject)
« Reply #6 on: 16 October, 2005, 19:11:41 »
Quote
Originally posted by bluebear
Quote
Originally posted by Markitos
I didn't understand this part
Code: [Select]
print("Counting from 0 to 90000...\n")
    i = 0
    while i <= 90000 do
        print("\b\b\b\b\b", i)
        i = i + 1
    end
    print("\n")

Why does it have to count to 90000 and in this time the hub says connection refused by target machine?


Respectfully

Ahh, it has no purpose at all, other then showing how
do a count in console.

debugconsole.lua is only a test script that shows how to use the PxDbgC.dll.

If you'r a scripter, and need debug output when writeing you'r scripts. You can use the debugconsole.lua too see how you can implement it into a debug phase of your script.

//Bluebear
Oh now i understand it...

Offline bluebear

  • Double Ace
  • *
  • Posts: 116
  • Karma: +12/-0
  • Life is a bitch - And then you marry one!
(No subject)
« Reply #7 on: 16 October, 2005, 19:26:10 »
Next version is ready.

Added:
Option to make console always on top.
Output to both console and a file.
messagebox.
some extra print*()

Download/screenshot/info: http://www.thewildplace.dk/lua/pxdbgc/

Enjoy,
bluebear
Sincerely,
bluebear
--
http://www.thewildplace.dk/ is is closed - Use the following mirrors instead
http://bluebear.psycho-chihuahua.net
http://pxextension.piratez.dk/
[Lua extensions - Chat stats - YnHub PMSpy - DC Source code - and more]

PtokaX forum

(No subject)
« Reply #7 on: 16 October, 2005, 19:26:10 »