Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Shadow

#1
I just searched for your problem on google @Yidals @Hendrix @=TRC=Kelvin  and this came up: https://github.com/Microsoft/napajs/issues/93#issuecomment-338504478

http://bfy.tw/JoPb
#2
Quote from: Xmair on Aug 29, 2018, 06:17 AMWhy do you use a custom encryption method?

It's not a 'custom encryption', nor an 'encryption'.
It's the SHA-256 hashing (one way function) algorithm but implemented in squirrel (still, should use the hashing plugin instead.)
#3
what is the issue..?
#4
global_modelArray<- [];

function getRandomVehicle()
{
       srand(time()); // ?

       if(global_modelArray.size() != 0)
       {
             for( local i = 0; i < MAX_VEHICLES; ++i )
                        if( FindVehicle(i) )
                                  if( global_modelArray.find(FindVehicle(i).Model) == null )
                                            global_modelArray.push(FindVehicle(i).Model);
        }

        local index = LOWEST_MODEL_COUNT + rand() % (MAX_MODEL_COUNT - LOWEST_MODEL_COUNT);

        while(global_modelArray.find(index) != NULL) // infinite loop if you have every type of model
                  index = LOWEST_MODEL_COUNT + rand() % (MAX_MODEL_COUNT - LOWEST_MODEL_COUNT);

        return index;
}

not sure if it works or not but should be a good pseudocode
#6
I know this does not benefit your problem, but I find it a very good advice: Don't run processes that communicate with the internet as administrator unless you have no data that could be affected, you're basically giving a process that you don't trust lots of privileges to potentially mess up your computer. Your server should need nothing more than read/write in the local directory, network access and (perhaps) registry read/write.
#7
Quote from: Xmair on Jun 25, 2018, 07:04 PMWhat about this tho?
https://youtu.be/wrhOXj21FmI
Sometimes if you switch to fist from a wep, that happens ^

off-topic: you can just drag the windows in the far left&right corners and they'll automatically construct a 2-window middle-form.
#8
Quote from: krystianoo on Jun 24, 2018, 03:52 PMHello, (pardon the aggressive tone)

Why can I not change game_sensitivity multiple times without restarting the game?

Do you not understand that by restricting changes to game_sensitivity you are only harming legal players?

Since I'm unable to change my sensitivity the way it was intended for 3+ years in VCMP 0.4 (by ways of commands made by the developers) I will resort to gray area methods such as third party programs to achieve this now such as tens of other players will, or have already done so by now.

So congratulations, you've achieved nothing with this except for practically fucking over newbies who have no clue how to circumvent this "solution" and legit players.

 

Maybe you should PAY some respect to those who have helped create what you find entertaining.
#9
Quote from: Radon on Jun 24, 2018, 01:55 PMWhat could be the reason the installer could get detected as an malware? Wouldn't be from the compression thingy? If it is, I don't find anything problematic with the installer taking just 5-6MBs or so.

Probably because some antivirus sees it as a dropper of some sort. It would also be of use if you could post the reports from the AVs.
#10
It is probably an issue in the newer squirrel builds related to character processing. IRC should die anyway.
#11
@Stormeus , while you are at it, please update the squirrel version to the latest available on both the client and the server. There are some funky issues waiting to be abused :)
#12
Quote from: Stormeus on Jun 10, 2018, 06:25 PMWe could definitely make use of an active beta testing team to better polish our releases though.

It would be nice if the beta testers had something to test though. :P
#13
Client Scripting / Re: [function] qGUI
Jun 10, 2018, 01:04 PM
@Sebastian The thing is, you are still using bytes for no reason when calling the constructor. If squirrel emulates C/C++, then you are pushing 5 bytes onto the stack ('l' 'a' 'b' 'e' 'l') and calling the constructor. I don't know if you can have bytes on squirrel but even an integer (4 bytes) would be more optimal for the task.

And the parameter checking is just a recommandation, of course you are free to do what you want because it is your release but I think it would be best to add some nice checks.
#14
Client Scripting / Re: [function] qGUI
Jun 10, 2018, 01:20 AM
A few considerations to be made, I like your idea but I think you could improve your implementation.

For starters, you should check the type of the values that you're dealing with because that can go south really fast (if you don't pass a vector as the first argument, for example). Same applies for type, size, rgb.

Then, why do you need a string for the type? Sorry if this bothers you but you could save some bytes by just declaring an enum. I don't know squirrel anymore but I guess something like this could work?

enum GUI_Types
{
      GUI_WINDOW,
      GUI_LABEL,
      GUI_EDITBOX,
      GUI_CHECKBOX
}

Anyway, great job with the tiny 'library' but it's sad that this has to be shipped to every user's PC. Was looking for a more standardized approach from VC:MP :P

#15
Maybe your intention was to negate the return value of InPoly, as in, you meant to add a '!' before it. Just a thought, I can't really understandn why your code _doesn't work_ because you provided no information...