Problem description:
Rather than using Topic to send info to a web page, what I'd like to do is create a customized experience for players. This means showing them their name and some customized stats about their gameplay.
How would I go about passing this information into a browser page that has already been set up?
Rather than having the entire page be a separate file, I actually hard coded it into the game and it's built when the player is presented with the page in game.
Knowing this, is there some way I can send along pertinent info like the player's key or how much money or kills they've amassed in their play through?
ah. actually. i found out what the problem was I wasn't escaping certain characters.
Once I did that it worked fine. thanks |
One thing I noticed in the BayStation SS13 code is that the use template files for a lot of their browser stuff. That might be fairly useful to you to study.
|
That might be helpful.
Especially if I can figure out how to display forms and have them actually work as well. Where might I find this? |
I forget where the BayStation source is found, but you can ask around; it's on github somewhere.
Alex, I've actually been working with SS13 for a while. I'm not a player and I don't do any development for it, but I was using the BayStation code to try to hone the webclient and I still do testing with it fairly often. It's really good for testing certain things that don't come up in smaller projects. The NanoUI thing they have setup is pretty advanced. |
You should just be able to call either usr or src in the browser html code, depends how you're doing it though.