2020-03-23 13:43:27 (edited by secret_land 2020-03-23 13:44:31)

Hello. I just wondering how to add twitter authorizing on BGT. I don't want to try tw way. I want do that like undead-assault. How to type authorizing  this twitter URL?

start of my signature.
I admit that I am a very moody person. I understand that most things are wrong, I do very good things in my mouth and make people incredibly happy. But I'm not sure that people in most places understand my purpose, I think I'm wrong somewhere ... It's impossible for me to correct myself alone, and no one will help me.
end of my signature.

2020-03-23 14:37:01

@1, this may not be possible with BGT. This is possible with python, though.

If you found this post helpful, amusing or funny, please thumb it up!
To get in touch, please email me using the email link below this post. If you prefer, you can also send me a friend request on discord. I'm thetechguy#6969. Please do not send me a PM on here as I don't check those often.

2020-03-23 14:57:03

what about the twt

2020-03-23 15:21:34

The Twitter API totally fucked up TWT. Tried a while ago. Just gives an error.

2020-03-23 15:34:07 (edited by secret_land 2020-03-23 15:37:20)

Actually it is possible with BGT, I just don't know how to specify my application name in the URL https://api.twitter.com/oauth/ Easy to do, I should do things like void tweet and copy twitter suport bgt, that's all

start of my signature.
I admit that I am a very moody person. I understand that most things are wrong, I do very good things in my mouth and make people incredibly happy. But I'm not sure that people in most places understand my purpose, I think I'm wrong somewhere ... It's impossible for me to correct myself alone, and no one will help me.
end of my signature.

2020-03-23 15:49:11

The Oauth flow has more than just copying a key into a URL.  You have to get a token from the user by one method or another.  Also you will need JSON parsing and serialization to do much with it.

My Blog
Twitter: @ajhicks1992

2020-03-23 17:19:52

the short answer: you can't because it requires json parsing which bgt doesn't provide (though there are ways around like calling the api with another language like php and returning the result as something else and parse it with bgt, but it requires a web hosting or so which i don't recommend (have experience with writing a translation api which used json))
long answer: undead assault uses twython (I think) which is a wrapper around twitters api.
also,,, python has support for parsing of json even in it's standard library so, no other languages like php.

2020-03-23 18:14:42

is it possible with bgt to authorize account at all?

2020-03-23 21:11:26

This is impossible for several reasons. I'm not sure if Twitter enforces HTTPS, but if it does that's something else to add to the list. BGT cannot handle hTTPS. This is why people would use TWT for this kind of thing.

2020-03-23 21:35:37

@9
Wait, what. Really?

My Blog
Twitter: @ajhicks1992

2020-03-23 22:12:04

Unless I'm remembering wrong, that's the only reason why Dropbox auto-updaters weren't a thing. Dropbox would force HTTPS, so whenever someone would try to download a file from Dropbox it would do something weird. I seem to remember it hard crashing with a not responding message but that could've been for some other reason.

2020-03-23 22:25:45

@10, yeah. BGT has no secure networking capabilities at all. The security functions would be good if the bytecode method it used wasn't so weird, but since their not its not overly difficult to break it. To make it really hard to break you have to do some weird stuff in your code.

"On two occasions I have been asked [by members of Parliament!]: 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out ?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question."    — Charles Babbage.
My Github

2020-03-23 23:39:50

I just stumbled upon this topic and I wanted to clear things up. BGT did not have https support. Back when I implemented it, I wanted a quick solution for basic tasks like checking for updates and similar features. I did not want to ship OpenSSL because of the licensing ramifications, and I did not know about the Wininet C interface at the time or I would definitely have used it. But back then, about 9 or 10 years ago, the amount of insecure traffic was unfortunately still quite high. Nowadays many websites will not even operate over an insecure connection, and rightly so. Needless to say, were I to do it over again, ssl would be at the top of the list.

Kind regards,

Philip Bennefall

2020-03-24 07:59:04

at13
please continue bgt, this is what you do for five years, please continue it, you want to make other programming language or what? or you can open source it
thanks

2020-03-24 09:17:11

14, no. He will not.

Best regards: Marco

2020-03-24 09:18:29

Also does uppit have http?

Best regards: Marco

2020-03-24 11:14:30

okay, if we use TWT ...

The underlying connection was closed.
 I get an error.
The problem is that I don't know where to find config on twt. Maybe I should do it on my own account, I'm not sure. Also where can I find TWT?

start of my signature.
I admit that I am a very moody person. I understand that most things are wrong, I do very good things in my mouth and make people incredibly happy. But I'm not sure that people in most places understand my purpose, I think I'm wrong somewhere ... It's impossible for me to correct myself alone, and no one will help me.
end of my signature.

2020-03-24 12:37:08

@14:
In order to avoid going off topic, I'll be brief. I have no desire to revive BGT, nor to invent a programming language. This decision was taken a long time ago, and it will not change. I'm sorry. As I have said many times in other topics, there are a lot of options out there and I strongly advise you to explore them.

Kind regards,

Philip Bennefall

2020-03-24 12:42:07

I agree with post 18,
but I do have the question as to why open sourcing BGT is out of the question? It's your code, so we get that if you just don't feel like open sourcing BGT, cool man. I would understand 100 percent, but it's just more of a general question, ya know?

Ivan M. Soto.
Feel free to check out my work and services.
http://ims-productions.com

2020-03-24 12:52:12

@19:

I decided not to open source BGT because the code is old, and definitely not an example of good coding style as I was learning C++ when I began writing it in 2008 or so. Therefore it does not serve well as a learning tool, and there are better ways of creating this kind of infrastructure. So I feel that I would be doing the community a disservice by having BGT floating around in the form in which I left it. Also, I do not want to have my name attached to a codebase that I don't intend to maintain or support in any way. BGT worked well for the types of games for which it was designed, but I think it is time to move on.

Kind regards,

Philip Bennefall

2020-03-24 13:03:27

anyways
twt always have error for me, can't open it. Needs xml file

2020-03-24 15:01:19

philip_bennefall wrote:

@19:

I decided not to open source BGT because the code is old, and definitely not an example of good coding style as I was learning C++ when I began writing it in 2008 or so. Therefore it does not serve well as a learning tool, and there are better ways of creating this kind of infrastructure. So I feel that I would be doing the community a disservice by having BGT floating around in the form in which I left it. Also, I do not want to have my name attached to a codebase that I don't intend to maintain or support in any way. BGT worked well for the types of games for which it was designed, but I think it is time to move on.

Kind regards,

Philip Bennefall

I think everyone has a right to still use bgt, as it is good for beginners. I’m not gonna learn other languages just yet.

Best regards: Marco

2020-03-24 15:12:57

@22, I disagree, but I'm not going to start a language flame war here.

"On two occasions I have been asked [by members of Parliament!]: 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out ?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question."    — Charles Babbage.
My Github

2020-03-24 16:07:37

I'm not going to start a language flamewar either.  But I think it's really, really important to point out that you shouldn't write an autoupdater without SSL.  This is a terrible idea, and I can think of at least one trivial non-BGT-specific way to get a virus on your computer via it at a coffeeshop or whatever.  It's as trivial as looking for downloads of things that look like programs and intercepting the request.

I don't know how likely that is in practice, but given that it's easier to do than most viruses...well.  That's not okay.  That makes me have to consider securing my computer when playing games in BGT with autoupdating functionality now.

My Blog
Twitter: @ajhicks1992

2020-03-24 16:41:11

@24, subverting that wouldn't be hard -- encrypt the update package -- but again, BGT's cryptography is good, but the way it does its bytecode and such makes it easy to break in a few hours.

"On two occasions I have been asked [by members of Parliament!]: 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out ?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question."    — Charles Babbage.
My Github