PolyLoader 3.0

Posts 151165 of 689 · Page 11 of 46
Still not working, program wont start
Quote Originally Posted by exolrize View Post
Still not working, program wont start
Quote Originally Posted by FilipeSilvens View Post
PolyLoader does not open. Fresh install.
Quote Originally Posted by amir3277 View Post
is not opened
Check out the new new version, and still, make sure you do a clean uninstall as before.

This one adds verbose logging, so please if you continue to encounter this error go to your installation directory of PolyLoader and send me the contents of the "log.txt" file. Thanks!
This version works for me, thanks
Quote Originally Posted by Yemiez View Post
Check out the new new version, and still, make sure you do a clean uninstall as before.

This one adds verbose logging, so please if you continue to encounter this error go to your installation directory of PolyLoader and send me the contents of the "log.txt" file. Thanks!
It opens now. But I can't manually select my VS2017 or VS2013 compiler. I really don't wanna install a third version of visual studio.
http: // i. imgur. com /sHOKufU.png
Quote Originally Posted by FilipeSilvens View Post
It opens now. But I can't manually select my VS2017 or VS2013 compiler. I really don't wanna install a third version of visual studio.
http: // i. imgur. com /sHOKufU.png
VS 2017 should work, I forgot to change some stuff in manual install though, sorry!
For example, you shouldn't select "cl.exe" (even though it currently says so).

Example, if you selected cl.exe, and it looks something like so:
Code:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe
Then you should change it to:
Code:
C:\Program Files (x86)\Microsoft Visual Studio 14.0
(Omitting the \VC\bin\cl.exe part of the path)


Working on a fix for this right now!
Here's the newest version, 3.5.0!

This one comes with a bunch of new features, local server for interprocess communicaction, and new PolyEngine tags!
To view the changelog, go into the "Settings" tab and then press "Changelog", it will open a webpage to http://localhost:3255/changelog
Error
I keep getting this error
IlBvbHlMb2FkZXIgMy4wIEJ5IFllbWlleiINCiciQzpcUHJvZ3 JhbSBGaWxlcyAoeDg2KVxNaWNyb3NvZnQgVmlzdWFsIFN0dWRp byAxNC4wXFxWQ1xiaW5cdmN2YXJzMzIuYmF0IicgaXMgbm90IH JlY29nbml6ZWQgYXMgYW4gaW50ZXJuYWwgb3IgZXh0ZXJuYWwg Y29tbWFuZCwNCm9wZXJhYmxlIHByb2dyYW0gb3IgYmF0Y2ggZm lsZS4NCiciQzpcUHJvZ3JhbSBGaWxlcyAoeDg2KVxNaWNyb3Nv ZnQgVmlzdWFsIFN0dWRpbyAxNC4wXFxWQ1xiaW5cY2wuZXhlIi cgaXMgbm90IHJlY29nbml6ZWQgYXMgYW4gaW50ZXJuYWwgb3Ig ZXh0ZXJuYWwgY29tbWFuZCwNCm9wZXJhYmxlIHByb2dyYW0gb3 IgYmF0Y2ggZmlsZS4NCg==
What exactly is polyloader does it make some hacks ud?
Quote Originally Posted by adnaan99 View Post
What exactly is polyloader does it make some hacks ud?
Quote Originally Posted by Yemiez View Post
For developers
Everyone can create a hack that supports the PolyLoader platform.
 
View developer guide
A hack file is just a simple zip with the following files:
-metadata*
-C++ header or source files.

What files do PolyLoader 3.* recognize as Source files?
Any file with the extension of ".cpp", ".c", or ".cc" are recognized as source files.

What files do PolyLoader 3.* recognize as Header files?
Any file with the extension of ".hpp", ".h", or ".inl" are recognized as source files.

So how do I make a hack file?
Step 1, modify your source code.
The PolyLoader uses a few tags to understand your file:

[swap_lines][/swap_lines] - Swap the lines between the 2 tags, useful for randomizing a structure.
Code:
struct Entity {
    [swap_lines]
    DWORD dwBase;
    int id;
    int hp;
    int team;
    int weapon_id;
    int weapon_ammo;
    [/swap_lines]
};
[junk_enable /] - Enables auto junk code addition, the PolyLoader will add junk code after every ;
You can give it 1 or 2 parameters
[junk_enable 5 /] - Will add 5 lines of junk code after every ;
[junk_enable 5 10 /] - Will add 5 to 10 lines of junk code after every;
[junk_disable /] - Disables auto junk code addition.
[junk_enable_declares /] - The auto junk code generator will now only make declares (useful for in header files).
[junk_function 5 /] - Will add 5 randomized functions
[junk_function 5 10 /] - Will add 5 to 10 randomized functions.

[add_junk /] - Adds a block of junk code at this position, it does NOT take junk_enable_declares into account.

[swap_blocks][/swap_blocks] - Works like swap_lines but instead it swaps blocks of code.
[block][/block] - Define a block
Code:
[swap_blocks]
[block]
if (x == 5) {
    std::cout << "x == 5\n";
}
[/block]
[block]
if (y == 7) {
    std::cout << "y == 7\n";
}
[/block]
[/swap_blocks]
[enc_string_enable /] - Scrambles all strings, when you are using this make sure you have Decrypt.h included (the loader will generate a randomized Decrypt.h file).
[enc_string_disable /] - Disables the auto string scrambler.
[enc_string_push /] - Pushes the current state to a stack, this is the recommended way to use enc_string_enable and enc_string_disable.
[enc_string_pop /] - Pops from the stack, then setting the current enc_string state to whatever was on the stack.

Example:
Code:
// at this point enc_string is disabled.
[enc_string_enable /]
// now it is enabled.

// however, if you didn't know if enc_string is currently enabled, or disabled, you might ruin the encryption for the rest of the file if, for example, you assume it is enabled.
// therefor the push/pop mechanic has been added, it is the encouraged way of using enc_string.
[enc_string_push /] // the state of enc_string [enabled] is pushed onto the stack.
[enc_string_disable /] // Now for this region encryption will be enabled.
// do shit
[enc_string_pop /] // Now we reset it back to it's original state, in this case enabled.
[rand_val /] - Generates a random value of any PolyEngine type.
[rand_val type /] - Generates a random value of type type.
[func_decl function_name /] - Declares a PolyEngine function, this must be done to use arg_* tags! (See usage later)
[arg_tuple function_name /] - Generates a tuple of arguments, this is to be used in the declaration of a function only.
[arg_tuple_put function_name /] - Generates a set of arguments to be inserted for when you call a func_decl'd function.

The following are only to be used within a function that has been declared using [func_decl]:
[arg_tuple_use function_name /] - Generates random code using the arguments from the tuple_set.
[arg_tuple_if function_name type] - A parse-time if statement, use this to determine wether a desired type exists in the generated arg_tuple.
[/arg_tuple_if] - End the current arg_tuple if statement.
[arg_tuple_rand function_name type /] - Selects a random argument from the argument tuple in desired function. Only picked if the argument's type is type. See Types section for available types.
[arg_tuple_rand function_name /] - Equivalent to [arg_tuple_rand function_name Any /].

Types
There are 4 main data-types that PolyEngine uses, they can be seen as the following:
PolyEngine Macro Name <-> C++ Representation
Code:
Int <-> int
Char <-> char
String <-> std::string
Any <-> Any of the above.
Simple example using all the features above.
Code:
#include <iostream>
#include <string>
#include <Windows.h>

struct Entity
{
	[swap_lines]
	DWORD dwBase;
	int id;
	int hp;
	int team;
	int weapon_id;
	int weapon_ammo;
	[/swap_lines]
};


[enc_string_enable /]
[junk_enable 5 10 /]
void [func_decl function /]( int a, int b, [arg_tuple function /] )
{
	std::cout << "a : " << a << " b : " << b << std::endl;
	[arg_tuple_if function String]
		std::cout << "random string: " << [arg_tuple_rand function Any /] << std::endl;
	[/arg_tuple_if]

	[arg_tuple_use function /]

	// add_junk
	[add_junk /]

	// Swapping blocks
	auto x = [rand_val Int /];
	auto y = [rand_val Int /];
	[swap_blocks]
	[block]
	if ( x == 5 )
	{
		std::cout << "x == 5\n";
	}
	[/block]
	[block]
	if ( y == 7 )
	{
		std::cout << "y == 7\n";
	}
	[/block]
	[/swap_blocks]
}

void main( )
{
	function( 10, 15, [arg_tuple_put function /] );
	std::cin.get( );
}

[junk_function 1 /]
A possible outcome, would be the following:
http://pastebin.com/EVwUzfVC

metadata*
Here's an example of the new 'metadata' parser, which is the new encouraged way to define your command parameters, input, and output filenames:
Code:
// The PolyLoader version
version: 3.0
// The message displayed in File information, write a short description.
message: Hello MPGH!\nThis is just a test.
// The command line arguments given to vcvars32.bat, they can be the same as before except it is encouraged to skip the /Od flag (Debug).
command: /EHsc /MT *.cpp kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /link /FORCE:MULTIPLE /OUT:hack.exe
// set input as the specified /OUT flag
input: hack.exe
// Set output to what you want your distributed executabl as.
output: MPGH Test.exe

// Now you can also set HTML messages, like so:
// make sure html parsing is enabled
html: true
message: <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="https://use.fontawesome.com/f4250ed340.js"> <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Raleway:200"> <link rel="stylesheet" href="http://i.yemiez.com/assets/css/gallery.css"> </head> <body> <button class="g-btn rest" poly-onclick="http://mpgh.net/"> <i class="fa fa-external-link"></i> Release thread </button> <br>Or if the above button doesn't work, <a href="http://www.mpgh.net/">press here</a> </body> </html>
// Note that links only work inside of an <a> tag or using the "poly-onclick" attribute. 

// Files should now also be excluded using the exclude command.
exclude: file1.cpp
exclude: file1.h
// This does not exclude the file from compilation, only randomization.

// It is also encouraged to enter the date you released your file in, for simplicity there are 3 variables for it.
release-year: 2017
release-month: 01
release-day: 21

// set tasks
// This set the current 'TaskTypeState' to inlined C# code.
task-type: cs 
// All the C# code must be on the same line if you use the cs tag.
// I'd recommend using cs-file and instead adding a file.
task. using PolyPlugin; namespace Test { class Hey : Plugin { public string GetAuthor() { return "Yemiez"; } public string GetName() { return "Hey"; } public string GetCompany() { return ""; } public void InitializePlugin(CSPluginManager pm) { pm.PolyNotification( "Hello world!", "Hey!" ); } public void Dispose() { }  } };

// And this is how east it is to use a file instead.
task-type: cs-file
task: mycsfile.cs

// And that's it for the metadata file.
The above example could output the following when loaded:


And this as the developer message:


You should probably read the post before asking questions.
New update, 3.5.1, changelog:
Code:
Macros now transfer over to other files, if you define a macro in main.h you can use it in main.cpp (if main.h is parsed before main.cpp)
Added junk_enable_chars PolyEngine tag. (it enables you to use chars instead of std::strings, e.g for header files)
Added junk_disable_chars PolyEngine tag. (it disables junk_enable_chars, duh)
Added junk_disable_declares PolyEngine tag. (Previously it was only disabled once you did add_junk/junk_enable)
Moved log files into CurrentDirectory\Logs instead of just CurrentDirectory.
Changed how add_junk and junk_enable works. (In relation to junk_enable_xxx tags)
Thread edited as requested.
"PolyLoader 3.0 By Yemiez"
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x86
Copyright (C) Microsoft Corporation. All rights reserved.

*.cpp
c1xx: fatal error C1083: Cannot open source file: '*.cpp': No such file or direc
tory
Press any key to continue . . .

error compile, how to fix
Quote Originally Posted by Razka View Post
"PolyLoader 3.0 By Yemiez"
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x86
Copyright (C) Microsoft Corporation. All rights reserved.

*.cpp
c1xx: fatal error C1083: Cannot open source file: '*.cpp': No such file or direc
tory
Press any key to continue . . .

error compile, how to fix
What files are you trying to compile? this bug may be caused by how the command line is entered, or where PolyLoader is opened from!
Posts 151165 of 689 · Page 11 of 46
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?