StealthBot.net: Indicina Auto Injector - StealthBot.net

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Indicina Auto Injector Automatic Updator

#1 User is offline   Novynn Icon

  • Silver Member
  • PipPipPipPipPip
  • Group: Senior Members
  • Posts: 873
  • Joined: October-07 09

Posted August 03, 2011 - 03:38 AM

What it is:
Indicina is the project I've been working on for some time that I've adapted to fit in with storing various files for Stealthbot. The plan was to have an easy-to-use API that could utilized to store and update various scripts.
I've finally finished the basics and have hastily slapped together a working script example of what it could be used for. The site front-end is nonexistent at the moment (apart from a few simple details) but I hope to work on that over the next few weeks.

The example script injects code into each of your scripts once they're loaded, adding in Indicina's menus and functions. For the most part, they are solely private and shouldn't clash with any other objects within the script. I've included some comments on how it sees the script it's injecting and how to manipulate it to suit your wants and needs.

Most (or pretty much all) scripts won't be registered with Indicina yet, so you'll have to wait till developers start to use it. Most of my scripts I have put up there but... yeah.

How it works:
The system works by users initially creating these things called "Books". Think of each "Book" as a project that you're working on; in this case, a script. Each "Book" can have an unlimited amount of "Chapters" or versions. These versions can be anything from "1.0.0" to "First Beta Attempt #2"; however, for the purposes of a clean look, the Auto Injection script uses the former. Chapters can then have files uploaded to them and custom paths added. The API for this process has not been documented yet, but if you're willing then you can browse through the code and get the general gist of how it works.

Mostly however, the Auto Injection script just checks periodically (it'll be customizable in the future, or you can edit the script once you get it) for the latest "Chapter" for each "Book" you have loaded. If the script is out of date, then it will either notify you or go ahead and download the latest version. For scripts that you have modified or that you want to keep, you can switch to "Manual" which doesn't check or do anything, but still allows you to update it if you wish.

If however, you are a script developer then the development menu will also be available to you. You can create your Book, update its information and upload new chapters, which will automatically be set to the latest. The idea is that within 5 minutes of a developer uploading a new version, everyone else will have the updated version.

This menu is still under development, so you can expect new features in the future. The brilliance of it is that the script can update ITSELF! So you should only need to download it once.

How you can get it:
Go to the following link and download the latests version as a zip file. Extract this file into your bots main folder, then reload scripts. It will ask you for a developer username and key, which you don't need to fill out if you just want to use it for receiving updates.

Download

The developer username is the username you put in the Script("Author") = "YourNameGoesHere" field. The key is gotten by going to this url after registering at <old site redacted> (this is purely so I can handle users if they abuse the system, I don't care if you register then never come back).

Once that's all done, you can start using it as shown previously in this thread.


You can view your books and others by going to <old site redacted> and clicking the "Indicina" tab. This front-end is still under development though so most features are not available.



If you have any questions, suggestions or bugs then feel free to post them here or message me using the boards PM system.

Edit: Fixed links.
Edit: Added web front-end link.

Attached File(s)


This post has been edited by Novynn: March 14, 2018 - 01:37 AM


#2 User is offline   T3X0 Icon

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 498
  • Joined: June-27 10

Posted August 03, 2011 - 10:30 AM

Wanted to update the CCX to see what happens and an error appeard:
 [12:29:46 PM] {I} Getting latest CCX files...
 [12:29:46 PM] Scripting runtime error '501' in CCX: (line 345; column 3)
 [12:29:46 PM] Ungültige Zuweisung: 'bookInfo'
 [12:29:46 PM] Offending line: >> 
 [12:29:46 PM] Scripting runtime error '501' in CCX: (line 402; column 2)
 [12:29:46 PM] Ungültige Zuweisung: 'bookInfo'
 [12:29:46 PM] Offending line: >> 
 [12:29:46 PM] Scripting runtime error '501' in CCX: (line 275; column 1)
 [12:29:46 PM] Ungültige Zuweisung: 'bookInfo'
 [12:29:46 PM] Offending line: >> 


Then after disabling, enabling and again disabling your script:
 [12:36:25 PM] Error (#1011): '=' erwartet in DestroyObj().
 [12:36:25 PM] Indicina Auto Injector has been disabled.

 [12:36:31 PM] Scripting runtime error '-2147024809' in Indicina Auto Injector: (line 48; column 1)
 [12:36:31 PM] An object with the given name has already been added.
 [12:36:31 PM] Offending line: >> 
 [12:36:31 PM] Indicina Auto Injector has been enabled.

 [12:36:36 PM] Error (#1011): '=' erwartet in DestroyObj().
 [12:36:36 PM] Indicina Auto Injector has been disabled.

This post has been edited by aRtY: August 03, 2011 - 10:37 AM


#3 User is offline   Novynn Icon

  • Silver Member
  • PipPipPipPipPip
  • Group: Senior Members
  • Posts: 873
  • Joined: October-07 09

Posted August 03, 2011 - 07:57 PM

Looks like CCX has a naming clash, I'll send out an update later today.

The bookInfo error seems to occur when the script doesn't exist on the database, which should be an easy fix!

I just love how I can push an update and everyone else just needs to click a button to get it :P.

#4 User is offline   T3X0 Icon

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 498
  • Joined: June-27 10

Posted August 03, 2011 - 09:33 PM

As long as it's no virus or so.. :)

#5 User is offline   Novynn Icon

  • Silver Member
  • PipPipPipPipPip
  • Group: Senior Members
  • Posts: 873
  • Joined: October-07 09

Posted August 03, 2011 - 10:47 PM

I uploaded the new version which has the fixes included, it should've automatically updated it :).

#6 User is offline   T3X0 Icon

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 498
  • Joined: June-27 10

Posted August 04, 2011 - 09:58 AM

Uhm, after I enabled it, today and then disabled it again the error was there once again, too.

 [11:56:40 AM] Indicina Auto Injector has been enabled.
 [11:56:41 AM] {I} Getting latest Indicina Auto Injector files...
 [11:56:42 AM] {I} Updated 3 files.
 [11:56:42 AM] {I} Reloading Scripts...
 [11:56:43 AM] Scripts loaded.

 [11:57:08 AM] {I} Getting latest CCX files...
 [11:57:08 AM] {I} An Error has occured: The requested book does not exist.
 [11:57:31 AM] Error (#1011): '=' erwartet in DestroyObj().
 [11:57:31 AM] Indicina Auto Injector has been disabled.


#7 User is offline   Novynn Icon

  • Silver Member
  • PipPipPipPipPip
  • Group: Senior Members
  • Posts: 873
  • Joined: October-07 09

Posted August 04, 2011 - 10:19 AM

I cannot recreate this error... could you maybe give me a list of scripts you have currently? Something may be clashing.

I just uploaded revision 4 with a minor fix that prevents an error message showing for disabling then re-enabling, but it's in no way related to your problem.

#8 User is offline   T3X0 Icon

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 498
  • Joined: June-27 10

Posted August 04, 2011 - 08:14 PM

I removed all scripts and checked it only with your script being in the script folder.
The error still came.

#9 User is offline   Novynn Icon

  • Silver Member
  • PipPipPipPipPip
  • Group: Senior Members
  • Posts: 873
  • Joined: October-07 09

Posted August 04, 2011 - 09:36 PM

Such an annoying error...

Try updating again, I put up some conditions that might squelch the error message (it's only occuring because the object doesn't exist).

#10 User is offline   T3X0 Icon

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 498
  • Joined: June-27 10

Posted August 05, 2011 - 10:24 AM

 [12:23:34 PM] Indicina Auto Injector has been enabled.
 [12:23:38 PM] {I} Getting latest Indicina Auto Injector files...
 [12:23:39 PM] {I} Updated 3 files.
 [12:23:39 PM] {I} Reloading Scripts...
 [12:23:40 PM] Scripts loaded.
 [12:23:45 PM] Error (#1011): '=' erwartet in DestroyObj().
 [12:23:45 PM] Indicina Auto Injector has been disabled.



Another question is why do I still get the same update message, although I have got the latest version/files?
 [12:23:38 PM] {I} Getting latest Indicina Auto Injector files...
 [12:23:39 PM] {I} Updated 3 files.
 [12:23:39 PM] {I} Reloading Scripts...
 [12:23:40 PM] Scripts loaded.

 [12:24:41 PM] {I} Getting latest Indicina Auto Injector files...
 [12:24:42 PM] {I} Updated 3 files.
 [12:24:42 PM] {I} Reloading Scripts...
 [12:24:43 PM] Scripts loaded.

 [12:25:02 PM] {I} Getting latest Indicina Auto Injector files...
 [12:25:03 PM] {I} Updated 3 files.
 [12:25:03 PM] {I} Reloading Scripts...
 [12:25:04 PM] Scripts loaded.

Shouldnt there come a message like "you already have the latest version" or such a stuff.. ?

This post has been edited by aRtY: August 05, 2011 - 10:26 AM


#11 User is offline   Novynn Icon

  • Silver Member
  • PipPipPipPipPip
  • Group: Senior Members
  • Posts: 873
  • Joined: October-07 09

Posted August 05, 2011 - 08:35 PM

I really have no idea why you're getting that message, I've tried it on fresh installs, installs with some scripts, installs with none and every time it works perfectly :(.

Do you mean the "Update Now" button? I made it force update so that if you made any changes to the script and wanted to revert to the default, then you could.

#12 User is offline   Fallen-God Icon

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 364
  • Joined: September-11 09

Posted August 05, 2011 - 08:45 PM

This is a pretty good idea, nice work.
If you want suggestions or a second opinion on your work, I can look through the code some time. But if you don't want I won't waste my time, up to you :)
Choose Functional.

#13 User is offline   Novynn Icon

  • Silver Member
  • PipPipPipPipPip
  • Group: Senior Members
  • Posts: 873
  • Joined: October-07 09

Posted August 05, 2011 - 09:09 PM

View PostFallen-God, on August 06, 2011 - 09:45 AM, said:

This is a pretty good idea, nice work.
If you want suggestions or a second opinion on your work, I can look through the code some time. But if you don't want I won't waste my time, up to you :)

The code is extremely messy, since I was halfway through changing it to asyncronous web calls before I found some problems in the idea. At least if I come up with a working system then I can upload it and everyone gets it :D.

But yeah, feel free to post any suggestions you may have to improve it.

#14 User is offline   T3X0 Icon

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 498
  • Joined: June-27 10

Posted August 07, 2011 - 01:24 PM

Started bot and a new error:
 [03:22:38 PM] Scripting runtime error '-2146697211' in Indicina Auto Injector#class.indicina.vbs: (line 218; column 2)
 [03:22:38 PM] Die angegebene Ressource konnte nicht gefunden werden.

 [03:22:38 PM] Offending line: >> 
 [03:22:38 PM] Scripting runtime error '-2146697211' in Indicina Auto Injector: (line 88; column 2)
 [03:22:38 PM] Die angegebene Ressource konnte nicht gefunden werden.

 [03:22:38 PM] Offending line: >> 
 [03:22:38 PM] All connections closed.


#15 User is offline   Novynn Icon

  • Silver Member
  • PipPipPipPipPip
  • Group: Senior Members
  • Posts: 873
  • Joined: October-07 09

Posted August 07, 2011 - 07:53 PM

View PostaRtY, on August 08, 2011 - 02:24 AM, said:

Started bot and a new error:
 [03:22:38 PM] Scripting runtime error '-2146697211' in Indicina Auto Injector#class.indicina.vbs: (line 218; column 2)
 [03:22:38 PM] Die angegebene Ressource konnte nicht gefunden werden.

 [03:22:38 PM] Offending line: >> 
 [03:22:38 PM] Scripting runtime error '-2146697211' in Indicina Auto Injector: (line 88; column 2)
 [03:22:38 PM] Die angegebene Ressource konnte nicht gefunden werden.

 [03:22:38 PM] Offending line: >> 
 [03:22:38 PM] All connections closed.
That means you weren't connected to the internet at the time of the check. I should probably put a check in there so it doesn't error though.

#16 User is offline   Ribose Icon

  • Fire wants to be free.
  • Icon
  • Group: Global Moderators
  • Posts: 282
  • Joined: July-31 09

Posted August 08, 2011 - 05:35 AM

I approve the ingenuity of injecting update-script code into other scripts. I applaud your dedication to this dying bot. :)
~Ribose
[ Download ] [ Wiki ] [ Support ] [ Scripting ]
[ Chrome ] [ Notepad++ ] [ fedora ]
[ Homepage ] [ BNLS ♯ ]

#17 User is offline   tunefisch Icon

  • thunfisch/turnfisch
  • PipPipPip
  • Group: Members
  • Posts: 183
  • Joined: October-07 09

Posted August 08, 2011 - 08:21 PM

I would really like to see something like /plugins we had before in default installation. Could this be what i've been waiting so long for? Make it into build 490 or later?^^
Game Over! Final score: 29699

#18 User is offline   Novynn Icon

  • Silver Member
  • PipPipPipPipPip
  • Group: Senior Members
  • Posts: 873
  • Joined: October-07 09

Posted August 08, 2011 - 08:53 PM

View Posttunefisch, on August 09, 2011 - 09:21 AM, said:

I would really like to see something like /plugins we had before in default installation. Could this be what i've been waiting so long for? Make it into build 490 or later?^^

I plan to do this, I'm just thinking of recreating the entire system into a custom module loader so you can use 'addons' such as commands.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users