Registration Code (Part 1): w%kQ6
Registration Code (Part 2): b<#$1[*(cw~
In order to register on this forum, you must use the codes above. Combine them into one code (copy paste).

NosHook Injector v1.0.0.2

Topics regarding the online game Nostale.
User avatar
atom0s
Site Admin
Posts: 397
Joined: Sun Jan 04, 2015 11:23 pm
Location: 127.0.0.1
Contact:

NosHook Injector v1.0.0.2

Post by atom0s » Wed Sep 27, 2017 11:03 pm

ElitePvP Release Link
http://www.elitepvpers.com/forum/nostal ... ddons.html

Image
NosHook
Direct3D Hook / Plugins / Addons


>> Donations
Enjoy my work? Want to show your support? Why not donate?
https://www.paypal.com/cgi-bin/webscr?c ... Q2GRT6KUJN

>> What is NosHook?

>> Changelog
  • v1.0.0.2
  • [CHG] Updated the default client file to work with the newest game client update.
  • [CHG] Adjusted some internal variables for json parsing.
  • [FIX] Fixed some issues with downloads.
  • v1.0.0.1
  • [CHG] Changed the color of the save configuration button.
  • [ADD] Added a popup to let the user know when the configuration has saved.
  • [CHG] Adjusted when addons and plugins are checked internally.
  • [CHG] Adjusted when an addon or plugin is marked as installed to prevent false-tagging things.

>> Screenshots

Image Image
Image Image Image


>> Download

Please DO NOT upload this file to other websites. Instead, link people to this post/thread or the thread holding the most current version. I do not like seeing my downloads on other sites as people tend to infect them and try to steal peoples accounts and such. I would rather people come to my site, the official location of NosHook and obtain a real copy here. Thanks for understanding!
Attachments
NosHook v1.0.0.2.7z
(434.63 KiB) Downloaded 708 times
Derp~
Need a great web host? Check out: AnHonestHost.com


Donations can be made via Paypal:
https://www.paypal.me/atom0s
ddoslover
Posts: 2
Joined: Wed Sep 27, 2017 8:54 am

Re: NosHook Injector v1.0.0.2

Post by ddoslover » Thu Sep 28, 2017 7:51 am

thank you so much :D
Silica
Posts: 5
Joined: Sun Jul 16, 2017 3:17 pm

Re: NosHook Injector v1.0.0.2

Post by Silica » Thu Sep 28, 2017 12:35 pm

Thanks for the update! :)


Maybe I'm just dumb, but the Config Function:

Code: Select all

config:load_config(name, file)
seems to always returns false.

Tested it with the standard noshook config file, where both name and file should be "noshook",

Code: Select all

config:load_config("noshook", "noshook")
but the return is false. (even tried to add the xml extension)
Not specifying the optional file variable will result in an error (expected int, got a table)

Code: Select all

HookCore:GetConfigurationManager():LoadEx("noshook","noshook")
also returns false.

Only

Code: Select all

HookCore:GetConfigurationManager():Load("noshook")
seems to work.

attempting to read anything but string does result in an error aswell.
User avatar
atom0s
Site Admin
Posts: 397
Joined: Sun Jan 04, 2015 11:23 pm
Location: 127.0.0.1
Contact:

Re: NosHook Injector v1.0.0.2

Post by atom0s » Thu Sep 28, 2017 8:28 pm

If you are using the direct calls to the config manager, they are:
  1. -- className must match the file name and main root node of the xml file.
  2. HookCore:GetConfigurationManager():Load( className );
  3.  
  4. -- className must match the root node of the xml file.
  5. -- file is the full path to the xml config file.
  6. HookCore:GetConfigurationManager():LoadEx( className, file );
  7.  
  8. -- className is the name of the main config root of your loaded file.
  9. HookCore:GetConfigurationManager():Remove( className );
  10.  
  11. -- className is the name of the main config root of your loaded file.
  12. HookCore:GetConfigurationManager():Save( className );
  13.  
  14. -- className is the name of the main config root of your loaded file.
  15. -- name is the name of the config setting you want the value of.
  16. -- defaultValue is the default value that will be returned if the function errors or the entry is not found.
  17. HookCore:GetConfigurationManager():GetConfigString( className, name );
  18. HookCore:GetConfigurationManager():GetConfigBool( className, name, defaultValue );
  19. HookCore:GetConfigurationManager():GetConfigInt( className, name, defaultValue );
  20. HookCore:GetConfigurationManager():GetConfigFloat( className, name, defaultValue );
  21. HookCore:GetConfigurationManager():GetConfigDouble( className, name, defaultValue );
  22.  
  23. -- className is the name of the main config root of your loaded file.
  24. -- name is the name of the config setting you want to set the value of.
  25. -- value is the value to set the setting to. (This is a string.)
  26. HookCore:GetConfigurationManager():SetConfigValue( className, name, value );

If you are using the settings.lua included with NosHooks Lua libraries, then the functions are:
  1. -- name is the full file path of the settings to load. This function returns a table of the loaded json config.
  2. settings:load( name )
  3.  
  4. -- name is the full file path of the settings to save.
  5. -- t is the config table to save.
  6. settings:save( name, t )
These two things are completely separate. The config manager features are internal to NosHook. It uses XML based configuration files and stores information within the hook itself when loaded. The hook handles managing the settings while active.

The settings.lua library is a JSON settings file handler. The settings:load function returns the loaded json config file into a Lua table. With this library you are responsible for the settings table the entire time.
Derp~
Need a great web host? Check out: AnHonestHost.com


Donations can be made via Paypal:
https://www.paypal.me/atom0s
User avatar
atom0s
Site Admin
Posts: 397
Joined: Sun Jan 04, 2015 11:23 pm
Location: 127.0.0.1
Contact:

Re: NosHook Injector v1.0.0.2

Post by atom0s » Thu Sep 28, 2017 8:34 pm

If you need an example of how to use the settings.lua Lua library, you can check out the FPS addon's source code.
Derp~
Need a great web host? Check out: AnHonestHost.com


Donations can be made via Paypal:
https://www.paypal.me/atom0s
Silica
Posts: 5
Joined: Sun Jul 16, 2017 3:17 pm

Re: NosHook Injector v1.0.0.2

Post by Silica » Thu Sep 28, 2017 10:39 pm

I tried the exposed functions listed in one of the docs, using the config used by the Noshook launcher (noshook.xml) for testing. However, since the listed functon config:load_config fails no matter what I input, trying to read any config variables will result in an instant closure of the game.
Config Functions

config:load_config(name, file) - Loads a configuration file.
- name - The name of the main object within the config file. (ex. <derp><setting name="herp">1</herp></derp> the name is derp.)
- file - Optional parameter that specifies the file to load.

config:remove_config(name) - Removes a config from the configuration manager by its name.
- name - The name of the configuration to remove.

config:save_config(name) - Saves a configuration file by its name.
- name - The name of the configuration to save.

config:get_string(name, key) - Gets a configuration value from a config by its name. (string)
- name - The name of the configuration.
- key - The key to pull the value from.

config:get_bool(name, key) - Gets a configuration value from a config by its name. (bool)
- name - The name of the configuration.
- key - The key to pull the value from.

config:get_int(name, key) - Gets a configuration value from a config by its name. (int)
- name - The name of the configuration.
- key - The key to pull the value from.

config:get_float(name, key) - Gets a configuration value from a config by its name. (float)
- name - The name of the configuration.
- key - The key to pull the value from.

config:get_double(name, key) - Gets a configuration value from a config by its name. (double)
- name - The name of the configuration.
- key - The key to pull the value from.

config:set_value(name, key, value)
- name - The name of the configuration.
- key - The key to set the value of.
- value - A string value to set the config to. (This must be a string!)

I did resort to calling the ConfigurationManager (at least the loading part) directly which works fine.
Was just wondering if I'm doing anything wrong or if there is smth wrong with the function.
config:load_config("noshook") -> Fails, error (expected int, got a table)
config:load_config("noshook","noshook") -> False
HookCore:GetConfigurationManager():Load("noshook"); -> True
HookCore:GetConfigurationManager():LoadEx("noshook","noshook"); -> Fails, error (expected int, got a table)
User avatar
atom0s
Site Admin
Posts: 397
Joined: Sun Jan 04, 2015 11:23 pm
Location: 127.0.0.1
Contact:

Re: NosHook Injector v1.0.0.2

Post by atom0s » Thu Sep 28, 2017 11:11 pm

Instead of : for the config functions use . since they are not actual objects. It's just a table holding the functions so using : is passing an additional param that is not needed.
  1.     print(config.load_config('noshook'));
  2.     print(config.get_string('noshook', 'boot_file'));
Derp~
Need a great web host? Check out: AnHonestHost.com


Donations can be made via Paypal:
https://www.paypal.me/atom0s
Silica
Posts: 5
Joined: Sun Jul 16, 2017 3:17 pm

Re: NosHook Injector v1.0.0.2

Post by Silica » Sat Sep 30, 2017 4:38 am

Learning smth new every day :p

Thanks alot!
User avatar
atom0s
Site Admin
Posts: 397
Joined: Sun Jan 04, 2015 11:23 pm
Location: 127.0.0.1
Contact:

Re: NosHook Injector v1.0.0.2

Post by atom0s » Sat Sep 30, 2017 2:00 pm

Silica wrote:
Sat Sep 30, 2017 4:38 am
Learning smth new every day :p

Thanks alot!
Sorry about the confusion. A lot of the docs in NosHook are copied from other projects of mine that use similar stuff. In some cases its setup differently in other projects which is why this got incorrectly documented when I copied it from another project.
Derp~
Need a great web host? Check out: AnHonestHost.com


Donations can be made via Paypal:
https://www.paypal.me/atom0s
Reybun
Posts: 1
Joined: Mon Oct 09, 2017 5:40 am

Re: NosHook Injector v1.0.0.2

Post by Reybun » Mon Oct 09, 2017 5:45 am

Each time I press play
Noshook can't launch the game. Its says Error 740 with

System.Exception: Failed to launch boot file.
File Path: C:\Program Files (x86)\Nostale_FR2\NostaleClientX.exe
Error: 740
à NosHook.ViewModel.LauncherViewModel.<OnLaunchGame>b__5_0(Object sender, DoWorkEventArgs args)
à System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
à System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
The file path is good (I think)
How can I use Noshook please ? Thanks for good work btw
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest