Guild icon
DDraceNetwork
DDraceNetwork / off-topic
Any languages allowed
Between 2021-07-12 00:00:00Z and 2021-07-13 00:00:00Z
00:44
the funniest clip ive ever seen
Avatar
wathdafwipdude 2021-07-12 02:06:36Z
Does anyone know good clients to run on
Avatar
ddnet
Avatar
Avatar
gerdoe
cimtg when @TsFreddie xd (edited)
tf is that
Avatar
is it possible that my fucking internet provider wants me to use their static ip service unless port forwarding wont work (I found a video of someone talking about this, he said the information is from the provider)
07:48
the external ip is different than the one in provider page
07:51
someone said that they called the provider for port opening and they did it for him tf
Avatar
Avatar
AKayra
someone said that they called the provider for port opening and they did it for him tf
I'm confused, can you set static IP or not?
08:49
do you have admin access to the router?
Avatar
Im confused too I dont have many answers but my ip starts with 46 and the wan ip in router page starts with 100
08:50
the one in page was the one the guy was talking about
Avatar
Avatar
AKayra
is it possible that my fucking internet provider wants me to use their static ip service unless port forwarding wont work (I found a video of someone talking about this, he said the information is from the provider)
most internet providers are like that today
08:51
unless it's a big telco company with huge address pools
Avatar
I have my own router, static IP or not is up to me
08:52
I don't know any ISPs that don't let you use your own router xd
Avatar
you can use your own router, but it won't have public IP address unless you give them more money
08:53
IPv4 is dead
08:53
no more addresses available, so everything is NATed
08:54
my IP hasn't changed in like a year I think
08:54
ipv4
Avatar
static NATed IP is quite common
08:55
i have one too
08:55
it doesn't change, but you share it with other people => can't host any server with it
Avatar
I haven't had trouble with ppl connecting to my ipv4 since I got my own router
08:56
I have xfinity btw, usa
Avatar
lucky you 🙂
Avatar
Avatar
Comrade
unless it's a big telco company with huge address pools
.
Avatar
so idk if it's different in other places
08:56
o lol
09:20
I found fake lynn, Lynn
Avatar
genlynn impact
09:22
owo
Avatar
I went head on with 24lvl boss with 7-12 lvl characters and it didnt end well..
Avatar
Bomb | DerpDEX | Ambit Finance 2021-07-12 15:17:50Z
I am trying to make a platformer game on C++ and wonder if I should move as much stuff as I can to different files for readability or is it ok to write basic processes in main.cpp? All tutorials leave it mostly in the main file, so I have no idea how would be better to divide my code
Avatar
in general u want each main piece of functionality to be in its own .cpp/.h pair so like
15:18
one for the map, one for the character instances, one for the game logic, etc
Avatar
Avatar
noby
in general u want each main piece of functionality to be in its own .cpp/.h pair so like
☠BlackWolf☠ 2021-07-12 15:35:11Z
give 🤫
15:35
Im never mixing mary jane with Baccardi again
Avatar
Avatar
TsFreddie
tf is that
chinese independent map testing group
Avatar
Avatar
Bomb | DerpDEX | Ambit Finance
I am trying to make a platformer game on C++ and wonder if I should move as much stuff as I can to different files for readability or is it ok to write basic processes in main.cpp? All tutorials leave it mostly in the main file, so I have no idea how would be better to divide my code
лучше делить как сказал ноби
Avatar
Bomb | DerpDEX | Ambit Finance 2021-07-12 18:42:16Z
Да, я так и начал
18:42
Но ща проблемы с классами
18:42
Первый раз с ними работаю
18:42
Посему не понимаю как сделать использование объекта в другом файле
Avatar
ещё скажу что .h файлы лучше положить отдельно в /includes
18:43
интернет тупит капец
18:43
с чем работаешь то
Avatar
Bomb | DerpDEX | Ambit Finance 2021-07-12 18:44:20Z
С SFML, создал RenderWindow объект, пытаюсь его в мейн пропихнуть
18:45
WindowObj.cpp: sf::RenderWindow* wndMain = new sf::RenderWindow(sf::VideoMode(nScreenHeight, nScreenWidth), strGameName); WindowObj.h: sf::RenderWindow* wndMain();
18:45
Офк не весь код тут, но во всем остальном я уверен
18:46
Когда использую любой метод на wndMain выдает ошибку "выражение должно представлять класс, структуру или объединение" (edited)
Avatar
сдл?
Avatar
Avatar
Bomb | DerpDEX | Ambit Finance
Посему не понимаю как сделать использование объекта в другом файле
объекта?
18:48
просто инклудишь .h с классом и делаешь new
18:48
ну или просто конструктор вызываешь
Avatar
Bomb | DerpDEX | Ambit Finance 2021-07-12 18:56:46Z
Я явно накосячил где-то с заголовочным файлом
Avatar
Bomb | DerpDEX | Ambit Finance 2021-07-12 19:09:25Z
Ок, все, решил
Avatar
ну или просто конструктор вызываешь
Avatar
Avatar
Bomb | DerpDEX | Ambit Finance
Посему не понимаю как сделать использование объекта в другом файле
если ты про то как логику расписывать, то type Class::Function(...) {}
19:14
пиздец интернет
Avatar
Avatar
Bomb | DerpDEX | Ambit Finance
Ок, все, решил
как решил хд
Avatar
Bomb | DerpDEX | Ambit Finance 2021-07-12 19:21:17Z
Логика расписана уже за меня в библиотеке
19:21
Я прото создаю объект
Avatar
Avatar
gerdoe
как решил хд
Bomb | DerpDEX | Ambit Finance 2021-07-12 19:21:50Z
Снес просто файл, который был создан под окна, и перенес все в мейн)0)
19:25
Так как этот объект не просто хранит данные, а влияет на важнейшие функции, то он явно должен быть в мейне (edited)
19:25
Его вряд ли придется много раз использовать
Avatar
ну обёртку сделать можно, другое дело если тебе это пока не надо)
19:31
ну обёртку сделать можно, другое дело если тебе это пока не надо)
19:31
потрогай библиотеку пока что хд, сразу все идеальным не получится
Avatar
Avatar
Bomb | DerpDEX | Ambit Finance
I am trying to make a platformer game on C++ and wonder if I should move as much stuff as I can to different files for readability or is it ok to write basic processes in main.cpp? All tutorials leave it mostly in the main file, so I have no idea how would be better to divide my code
this is sfml? i did make a Minecraft 2D game on c++/sfml a while back, maybe you could use it as a guide or reference: http://github.com/headshot2017/minecraft-2d-sfml (edited)
another 2d minecrap dumpster fire clone. Contribute to headshot2017/minecraft-2d-sfml development by creating an account on GitHub.
Avatar
Bomb | DerpDEX | Ambit Finance 2021-07-12 22:38:58Z
Thanks for all the help, I highly appreciate it!
Exported 77 message(s)