function greeting( )
-- body
end
addCommandHandler("g", greeting)
That's wierd it returns with the first version of the file. I guess the cloudfornt doesn't synced the data. I tried with only the bucket link https://s3.eu-central-1.amazonaws.com/testmtabucket/resources and it worked fine.
How MTA resoulve DNS? Because it almost works in my browser it downloads the almost latest (without the last modofication you writed) with the cloudfront DNS too but MTA downloads the oldest?
Found the reason. CloudFront not the best in updating existing file. Link
Thank you for your help !
I fired up a nginx server to test it. It works fine with that. Can i turn on some debug to see more information about it? How MTA check that the file match? MD5?
Do you mean MTA San Andreas 1.5\mods\deathmatch\resources under client cache?
I did these steps and the same error occures.
My servers spawn resource: https://imgur.com/HjGYluO
The bucket: https://imgur.com/9emUhE6
In the server config: <httpdownloadurl>d1izvzwg6uq9e2.cloudfront.net</httpdownloadurl>
I'm duing this on Windows 10 don't know is it matter.
The content-type is looks fine too.
https://imgur.com/VfSMy0v
It's just a local server on my machine.
But i read your comment somewhere about different line ending, so i checked i compired the binary and i didn't see any difference.
But here's the file on my machine: Drive link
And here is the link for the S3 bucket: Bucket
Hi guys!
I just tried out the external http file download stuff. And i constantly get:
DIAGNOSTIC: [N'C]dugasz1 #1011 External HTTP file mismatch (Retrying this file with internal HTTP) [spawn\spawn_c.lua]
But they are the same. I'm using AWS CloudFront. So, i don't know is it the server even find it? Maybe the redirections mess things up?
I added ContentType: application/octet-stream and i checked it with chrome and postman and it is there. So any idea?
Thank you (and Arezu ) it clear things up. So an envirement is kindy a scope.
(I don't need to worry about the security the loaded script will be my scripts but at least i know more)
I used the performancebrowser online interface. Maybe because of that. How can i open it ingame?
I don't really get setfenv(0,newENV). Can you please explane it for me? Kindy get how Lua's environments work but what is this 0 means: "As a special case, when f is 0 setfenv changes the environment of the running thread. In this case, setfenv returns no values."
Why is it good? What is it for?