Hello everyone!,
i need to put a ChangeLog in My game but is possible make the changelog online?
for example:
in the site: http://www.example.com/changelog.txt
and shows the changelog.txt content in the Love2D window!
thanks.
online changelog? --help please
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- HugoBDesigner
- Party member
- Posts: 403
- Joined: Mon Feb 24, 2014 6:54 pm
- Location: Above the Pocket Dimension
- Contact:
Re: online changelog? --help please
If you already have the text online somewhere, then it should be possible by using http.request:
http://w3.impa.br/~diego/software/luasocket/http.html
http://w3.impa.br/~diego/software/luasocket/http.html
-
- Prole
- Posts: 12
- Joined: Fri Jul 03, 2015 8:54 pm
Re: online changelog? --help please
Thanks, but how to print what have in the File:http://www.cs.princeton.edu/~diego/prof ... /http.html?
i need to make a changelog to my game, to make the Updates and News...
i need to make a changelog to my game, to make the Updates and News...
- HugoBDesigner
- Party member
- Posts: 403
- Joined: Mon Feb 24, 2014 6:54 pm
- Location: Above the Pocket Dimension
- Contact:
Re: online changelog? --help please
I personally think it is easier to learn from examples than from boring explanations (that's how I actually learned programming )
So here's a very simple example on how to load/print online content:
So here's a very simple example on how to load/print online content:
Code: Select all
function love.load()
http = require("socket.http")
a, b = http.request("http://pastebin.com/raw.php?i=NW3H038r")
love.graphics.setBackgroundColor(255, 255, 255)
if a and b then
a = string.gsub(a, "\r\n", "\n")
end
end
function love.draw()
love.graphics.setColor(0, 0, 0, 255)
if b then
love.graphics.print("Code: " .. tostring(b), 7, 7)
end
if a then
love.graphics.print("Content:\n\n" .. tostring(a), 7, 7+32)
end
end
-
- Prole
- Posts: 12
- Joined: Fri Jul 03, 2015 8:54 pm
Re: online changelog? --help please
Thanks!!,
thanks too much, now is working,
soon i will publish my game!!.
thanks too much, now is working,
soon i will publish my game!!.
Who is online
Users browsing this forum: Bing [Bot] and 4 guests