Jibble

Author Topic: Ask something - We can help.  (Read 199393 times)

Danvzare

  • The Man with No Name
    • I can help with AGS tutoring
    • I can help with proof reading
    • I can help with scripting
    • I can help with voice acting
    • Danvzare worked on one or more games that was nominated for an AGS Award!
Re: Ask something - We can help.
« Reply #1680 on: 15 Feb 2019, 18:16 »
Guess what, most DLC is NOT carved out.
Correct. A lot of content in games, wouldn't exist without DLC. A very good example I think, is the uncensored Ransome in Thimbleweed Park.
That being said, content is still carved out for some DLC. And if DLC wasn't popular, that content would never be carved out.
So in other words, I'm complaining about how other people have ruined my gaming experience by making DLC popular by buying it all the time. I'd like to reiterate my example of Tira in Soul Calibur VI.
That being said, I can completely understand if someone thinks that the extra content you can get from DLC outweighs any games that might carve out content for DLC. I'm just not one of those people.

Re: Ask something - We can help.
« Reply #1681 on: 01 Jul 2019, 01:17 »
This isn't for me but for a friend. She wants help identifying an adventure game. I'll just post her words here:

“I don't know if it'll get a hit because I've been able to find every other game but here it is: It was a demo so I didn't even get to know what else happens, but there was one girl creature and one boy creature, they were in their house when the lights are cut and they are attacked. You have to go around the house with a match to find the items you need to unlock them from a chest. Once you do that the demo ends. So not very helpful. I think the girl creature had a minnie mouse esque skirt. I call them creatures because they weren't human but I can't remember if they were fictional designs or based off of animals.”

Any ideas?

LimpingFish

  • Mittens Serf
  • Boink!
    • LimpingFish worked on one or more games that was nominated for an AGS Award!
Re: Ask something - We can help.
« Reply #1682 on: 14 Jul 2019, 02:07 »
Guess what, most DLC is NOT carved out.

What is this assertion based on? Perhaps if you has said "some DLC", I wouldn't be posting this, but you didn't, so I am. :)

This isn't for me but for a friend. She wants help identifying an adventure game.

Any idea of the period it's from?
Steam: LimpingFish
PSN: LFishRoller

Monsieur OUXX

  • Mittens Vassal
  • Cavefish
  • Mittens Half Initiate
    • I can help with proof reading
    • I can help with translating
    • I can help with voice acting
    • Monsieur OUXX worked on one or more games that won an AGS Award!
    •  
    • Monsieur OUXX worked on one or more games that was nominated for an AGS Award!
Re: Ask something - We can help.
« Reply #1683 on: 20 Apr 2020, 10:21 »
Encoding issue.

So, I know that the .TRS of AGS are supposed to be ANSI. But somehow at some point I f***ed up and my file probably did a little trip to UTF-8 and back.
And now it's "corrupt".

Consider this as a riddle :

My file contains this sequence of characters (in hexadecimal ) :  EF BF BD and I know for a fact that it's supposed to be Ö (capital ö, decimal ascii : 214)

Can you :
- find an automated process to restore it properly to ANSI? (at the moment I cant figure out how to display it as Ö even by toying around with the encodings) (by automated, I mean fix an entire file with just a few clicks in Notepad++ or Visual Studio Code or whatnot)
- maybe guess what bad encoding/actions could have led to the faulty encoding? (so that I don't do it again). Did I do that by saving an ANSI file to UTF8?


=== EDIT ===

So apparently I have this issue : https://www.w3.org/International/questions/qa-utf8-bom.en.html
I'm still not sure what I did wrong, or how to fix it.


=== EDIT ===

I've given up and luckily found a backup.
On a general note I think the TRS files should now be UTF-8 from the start, and then throw an error message at translation-compile time if they contain a character that's too fancy.
« Last Edit: 20 Apr 2020, 15:05 by Monsieur OUXX »
 

Monsieur OUXX

  • Mittens Vassal
  • Cavefish
  • Mittens Half Initiate
    • I can help with proof reading
    • I can help with translating
    • I can help with voice acting
    • Monsieur OUXX worked on one or more games that won an AGS Award!
    •  
    • Monsieur OUXX worked on one or more games that was nominated for an AGS Award!
Re: Ask something - We can help.
« Reply #1684 on: 19 May 2020, 18:35 »
I'm trying to get an HTTP response from a https page, using AGS (ags sockets plugin)
I don't really care bout the content, I just want an HTTP 200.

When I try with postman this is what it sends to the server :

Code: Adventure Game Studio
  1. GET https://www.raidersofthesevencities.com/stats-startup.html
  2.  
  3. User-Agent: PostmanRuntime/7.24.1
  4. Accept: */*
  5. Host: www.raidersofthesevencities.com
  6. Accept-Encoding: gzip, deflate, br
  7. Connection: keep-alive
  8.  

Nothing fancy.

Here is how I try to replicate it :
Code: Adventure Game Studio
  1.   String host = "www.raidersofthesevencities.com";
  2.   String path = "/stats-startup.html";
  3.  
  4.   SockAddr *ip = SockAddr.CreateIP(host, 80); //Only 80 works, 443 doesn't return anything
  5.  
  6.   state.server = Socket.CreateTCP();
  7.   state.connected = !state.server.Connect(ip);
  8.   state.server.blocking = false;
  9.  
  10.   if (state.connected) {
  11.     String completeTarget = String.Format("https://%s%s", host,  path); //  https://www.raidersofthesevencities.com/stats-startup.html
  12.    
  13.     String command = "";
  14.    
  15.     command = command.Append(String.Format("GET %s HTTP/1.1\r\n", completeTarget )); //I tried removing HTTP/1.1, I get "bad request"
  16.     command = command.Append(String.Format("Host: %s\r\n", host));
  17.     command = command.Append("Connection: keep-alive\r\n");
  18.     command = command.Append("Accept: */*\r\n");
  19.     command = command.Append("Accept-Encoding: gzip, deflate, br\r\n");
  20.     command = command.Append("User-Agent: AGS (Windows NT 5.1; U; en)\r\n\r\n");
  21.    
  22.     state.server.Send(command);
  23.   }
  24.  

Yet when I try that, I get a "301 permanently moved". And the response contains :
Code: Adventure Game Studio
  1. Location: https://www.raidersofthesevencities.com/stats-startup.html
As you know this is the server's subtle way of telling you that you're a silly goose and that you should have gone straight away to HTTPS instead of starting with HTTP. Except... I did start with https, with exactly that URL.

What am I missing?
 

Re: Ask something - We can help.
« Reply #1685 on: 19 May 2020, 19:56 »
Curios that works, because it should be

Code: Adventure Game Studio
  1. GET /stats-startup.html HTTP/1.1

You're using  SockAddr.CreateIP(host, 80);, and the server is probably removing protocol and host while parsing the request.

Anyway, the socket plugin has no built-in support for https, all it does is open connections. You would have to implement the entire ssl protocol yourself.
« Last Edit: 19 May 2020, 19:58 by Khris »
Fail at Floaty Rog' now!  still having to deal with what games are going through

eri0o

Re: Ask something - We can help.
« Reply #1686 on: 19 May 2020, 22:20 »
(if someone is feeling adventurous, you can implement AGS Script bindings and recreate the objects for a cpprest-sdk plug-in: https://github.com/microsoft/cpprestsdk )

Monsieur OUXX

  • Mittens Vassal
  • Cavefish
  • Mittens Half Initiate
    • I can help with proof reading
    • I can help with translating
    • I can help with voice acting
    • Monsieur OUXX worked on one or more games that won an AGS Award!
    •  
    • Monsieur OUXX worked on one or more games that was nominated for an AGS Award!
Re: Ask something - We can help.
« Reply #1687 on: 20 May 2020, 07:49 »
Anyway, the socket plugin has no built-in support for https, all it does is open connections. You would have to implement the entire ssl protocol yourself.

OK but before it sends encrypted stuff there has to be a way for me to simply get a "you hit the right page, thank you" answer, without any encryption-related code? I humbly confess I don't know enough.
 

Re: Ask something - We can help.
« Reply #1688 on: 20 May 2020, 07:59 »
I don't think so, but no clue. Maybe the request appears in a log somewhere?
You can also write a small exe that'll make the request and call it from AGS via ags_shell.
Or use an http server that in turn makes the https request. ifttt?
Fail at Floaty Rog' now!  still having to deal with what games are going through

Monsieur OUXX

  • Mittens Vassal
  • Cavefish
  • Mittens Half Initiate
    • I can help with proof reading
    • I can help with translating
    • I can help with voice acting
    • Monsieur OUXX worked on one or more games that won an AGS Award!
    •  
    • Monsieur OUXX worked on one or more games that was nominated for an AGS Award!
Re: Ask something - We can help.
« Reply #1689 on: 20 May 2020, 08:12 »
ags_shell.
A few months ago I was trying to remember that plugin and couldn't find it. Thanks! I'll try. Maybe I can do everything through the shell, with Powershell commands. Will it pop up a shell terminal?
 

Re: Ask something - We can help.
« Reply #1690 on: 20 May 2020, 08:30 »
Not sure, but you can use curl instead.

And here's the plugin: ags_shell
« Last Edit: 20 May 2020, 08:32 by Khris »
Fail at Floaty Rog' now!  still having to deal with what games are going through

Monsieur OUXX

  • Mittens Vassal
  • Cavefish
  • Mittens Half Initiate
    • I can help with proof reading
    • I can help with translating
    • I can help with voice acting
    • Monsieur OUXX worked on one or more games that won an AGS Award!
    •  
    • Monsieur OUXX worked on one or more games that was nominated for an AGS Award!
Re: Ask something - We can help.
« Reply #1691 on: 20 May 2020, 10:24 »
Not sure, but you can use curl instead.

And here's the plugin: ags_shell

It will be a better solution, because this causes the page to open in a browser, which I don't want :
Code: Adventure Game Studio
  1. ShellExecute("open", "rundll32.exe", "url.dll,FileProtocolHandler http://www.google.com");
  2.  
 

Re: Ask something - We can help.
« Reply #1692 on: 20 May 2020, 10:46 »
You can use  ShellExecute("", "https://google.com", "");  instead, but that's beside the point.
Let me do some curl tests.

(Also, maybe a mod can split off the https messages and move them to the technical forum?)
« Last Edit: 20 May 2020, 10:54 by Khris »
Fail at Floaty Rog' now!  still having to deal with what games are going through

Monsieur OUXX

  • Mittens Vassal
  • Cavefish
  • Mittens Half Initiate
    • I can help with proof reading
    • I can help with translating
    • I can help with voice acting
    • Monsieur OUXX worked on one or more games that won an AGS Award!
    •  
    • Monsieur OUXX worked on one or more games that was nominated for an AGS Award!
Re: Ask something - We can help.
« Reply #1693 on: 20 May 2020, 10:52 »
(Also, maybe a mod can split off the https messages and move them to the technical forum?)

Nah, it's really not AGS, just me not understanding internet protocols.
If ShellExecute("", "http://google.com", "") works, I don't need more. Again, I don't need to parse the result, I just need the http server to know that someone hit that page.
Nope, that's no good. It does switch out from the game and open the page in a browser. I want to silently hit the page. I'll try curl.
« Last Edit: 20 May 2020, 15:58 by Monsieur OUXX »
 

Re: Ask something - We can help.
« Reply #1694 on: 20 May 2020, 10:56 »
That call will still open the system's default browser, so not really what you need.
Also, this is about accessing an https server from AGS so pretty sure it falls under AGS technical questions.
Fail at Floaty Rog' now!  still having to deal with what games are going through

Monsieur OUXX

  • Mittens Vassal
  • Cavefish
  • Mittens Half Initiate
    • I can help with proof reading
    • I can help with translating
    • I can help with voice acting
    • Monsieur OUXX worked on one or more games that won an AGS Award!
    •  
    • Monsieur OUXX worked on one or more games that was nominated for an AGS Award!
Re: Ask something - We can help.
« Reply #1695 on: 20 May 2020, 12:45 »
So I've tried this and it seems to work on Windows 10, AGS 3.5.0.24 (aka "patch 2") using curl 32 bits :
Code: Adventure Game Studio
  1.   ShellExecute("", "curl.exe", "\"https://www.raidersofthesevencities.com/stats-startup.html\"");
  2.  

I've simple put all files from curl's "bin" folder into my AGS game's execution folder
Code: Adventure Game Studio
  1. curl.exe
  2. curl-ca-bundle.crt
  3. libcurl.dll
  4.  

Me happy.

I'm very happy that I can just download the binaries for Curl on other systems (MacOS) right off the website.
I'm less happy that I only have the sources to ags_shell and that I need to build them myself for MacOS or Linux. But, oh well. I can't really compain about that.

 

Re: Ask something - We can help.
« Reply #1696 on: 20 May 2020, 16:00 »
It is probably worth noting that recent builds of Windows 10 come with a version of curl, and that AGS doesn't change the working directory when it starts, so potentially you may actually be running a separate copy and not the one which you have supplied. Also this shouldn't be confused with the curl alias in Powershell, which is a horrific attempt to map the symbol 'curl' to Powershell's web request functions (which are dependent on other system/IE components, which are potentially not operational).

Monsieur OUXX

  • Mittens Vassal
  • Cavefish
  • Mittens Half Initiate
    • I can help with proof reading
    • I can help with translating
    • I can help with voice acting
    • Monsieur OUXX worked on one or more games that won an AGS Award!
    •  
    • Monsieur OUXX worked on one or more games that was nominated for an AGS Award!
Re: Ask something - We can help.
« Reply #1697 on: 22 May 2020, 23:08 »
It is probably worth noting that recent builds of Windows 10 come with a version of curl, and that AGS doesn't change the working directory when it starts, so potentially you may actually be running a separate copy and not the one which you have supplied. Also this shouldn't be confused with the curl alias in Powershell, which is a horrific attempt to map the symbol 'curl' to Powershell's web request functions (which are dependent on other system/IE components, which are potentially not operational).

Is curl a standard program in Linux and/or MacOS? It would be cool if I didn't have to ship it with any of my game's ports.
 

Re: Ask something - We can help.
« Reply #1698 on: 22 May 2020, 23:29 »
It used to come with macOS, but I'm not sure if it still does or it is safe to rely on on it always being there. For Linux it wouldn't be safe to rely on it being there and you will also need to ensure that the build you supply can run on slighly older systems (normally by building it on one), otherwise you end up with errors like this:

Code: [Select]
$ ./program
./program: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by ./program)

Re: Ask something - We can help.
« Reply #1699 on: 23 May 2020, 00:04 »
Is curl a standard program in Linux and/or MacOS? It would be cool if I didn't have to ship it with any of my game's ports.

Idk about macos, but on Linux you're supposed to know how to install any program yourself, so it's hard to tell what is "standard" program at all. But it is probably a "common" program.

It did not come with Ubuntu when I installed it on VM, but it was as easy to install as "sudo apt-get install curl".