haxball / haxball-issues

115 stars 43 forks source link

Camera Bug Problem When Game Starts / Maç Başlayınca Kamera Sorunu #1791

Open kadavrahaxball opened 1 year ago

kadavrahaxball commented 1 year ago

im gonna explain my problem in 2 languages.

i made a bot for 11v11 futsal. in this bot, firstly 2 captains getting selected for team blue and team red. then they select players from spectators for their team. after that, a new map is loading. it's a line up map. and you can change formation in this map like 3-5-2, 4-3-3, 4-4-2. when captains decide their formation, match is starting. match map is getting loaded and game is starting. the problem is starting after this point. the camera of some players in the room is getting broken. generally 2 or 3 players' camera dont move. camera stays still. it doesnt follow the ball or character. The problem goes away when those players who have the problem leave the room and join again. i dont know why but a few players having this problems evert game starts. What do you think might cause?

/////

Tr: beler şimdi ben v11 futsal botu yaptım. yarı otomatik bot aslında bi hostla yönetiliyor. red ve blue ya birer adam atıyorum. daha sonra komutumla o attıklarımı kaptan seçmiş oluyorum. daha sonra dizilim mapi açıyorum. onlar hem diziliyor hem de bi yandan bana specten istedikleri oyuncuları sıra sıra söylüyolar onları veriyorum, sonra seçilen oyuncular da diziliyor vs klasik seyler. daha sonra 22 oyuncu da dizilince farklı bi komut vasıtasıyla formasyon ayarlama mapine geçiyoruz. 4-3-3, 4-4-2, 3-5-2 gibi dizilisler secebiliyor kaptanlar, ona göre oyuncuların pozisyonları değişiyor fln dizilim mapi gibi sadece oyuncuların konumu hareket ediyor. neyse burası önemli değil asıl olay şimdi başlıyo. formasyon işi de tamam olunca başlat komutumla maçı başlatıyorum. oyun duruyor. map yükleniyor maç başlıyor hızlı bir şekilde. ama her seferinde odadan 1-2 kişinin kamerası bozuluyor. ortada sabit kalıyor topla vs hareket etmiyor ortada öylece sabit kalıyor. odadan çık gir yaptıklarında ise düzeliyor. her seferinde 1-2 kişi yaşıyor bu problemi diğerleri yaşamıyor. neden olabileceğini bi cozemedim.

wxyz-abcd commented 1 year ago

you probably have a map object that causes the last inserted players to reach really high speeds somehow, so that the coordinates become Infinity or NaN. I've fixed that camera bug in my API, just in case. :)

kadavrahaxball commented 1 year ago

you probably have a map object that causes the last inserted players to reach really high speeds somehow, so that the coordinates become Infinity or NaN. I've fixed that camera bug in my API, just in case. :)

how can i use this camera solution in ur api?

wxyz-abcd commented 1 year ago

Camera problem is a client-side problem. You cannot fix client-side problems easily. You need to create your own website and invite people there. My API provides everything you need to create your own Haxball website.

However, what you really need is probably not that complicated. You only have to edit your stadium file so that players do not collide with each other at the startup. It might be happening due to stadium height, spawn point positions, wrongly placed planes, etc.