Page 3 of 3

Re: Beta Testers wanted! Tatooine Life needs you!

Posted: Fri May 22, 2020 7:14 am
by guru
Yes I can setup regions
In the code so each building can click and send players to their selected area/page.

Re: Beta Testers wanted! Tatooine Life needs you!

Posted: Fri May 22, 2020 10:13 am
by Benoz
I expanded the map a bit and added a suggestion image for the hover/click state, so someone can distinguish between clickable and non clickable buildings
Hidden/Spoiler:
ImageImage

Re: Beta Testers wanted! Tatooine Life needs you!

Posted: Fri May 22, 2020 10:50 am
by guru
That’s great ! So it has every spot in the game essentially looks like? Really nice job

Re: Beta Testers wanted! Tatooine Life needs you!

Posted: Fri May 22, 2020 10:57 am
by Benoz
I don't know how you're going to do it with the clickable regions. Once the map is finished I can export every clickable building as a separate image if that works for you. I can also send you the AI and PSD file.
What dimensions did you have in mind? 1920 x 1080?

Furthermore:
- when I battle with the speeder I now get Anakins speeder stats (30/30/30). My speeder has 25/20/20
- the "Traveler Biscuit" still gives you +2200 respect
- the chat in the middle under the energy bars is a nice idea. But will the chat-window get wider then? And will it be a separate box where you can scroll in?

Plus what would be great is a notification center for when someone fought you or raced you. So you can see if you lost or won

Re: Beta Testers wanted! Tatooine Life needs you!

Posted: Fri May 22, 2020 8:18 pm
by guru
i can wipe the vehicles you guys have and reset them and that will fix it, its because i erased some accounts so the numbers in battle got confused. let me know and i can reset vehicles to brand new setting

also i put the city map up right now its using my map until i can get a high def copy of your anakin.

i adjusted travel bicuits

Re: Beta Testers wanted! Tatooine Life needs you!

Posted: Mon May 25, 2020 5:17 am
by Anakin
What language is this written? Would you mind to send me the pod race files? i can have a look at it, maybe i find the problem with the vehicle values

Re: Beta Testers wanted! Tatooine Life needs you!

Posted: Tue May 26, 2020 3:07 am
by Benoz
That's the current progress of the map. I just want to fill in the blue area with houses and then call it complete. What do you say?
Hidden/Spoiler:
Image

Re: Beta Testers wanted! Tatooine Life needs you!

Posted: Wed May 27, 2020 2:42 am
by Anakin
noice

Re: Beta Testers wanted! Tatooine Life needs you!

Posted: Wed May 27, 2020 7:19 am
by guru
Looks amazing

Re: Beta Testers wanted! Tatooine Life needs you!

Posted: Wed May 27, 2020 12:01 pm
by guru
heres the race code :

//Round 1 - Speed
if ($rowvpc['speed'] < $rowuo['speed']) {
$round1u = 0;
$round1uo = 1;
}
if ($rowvpc['speed'] > $rowuo['speed']) {
$round1u = 1;
$round1uo = 0;
}
if ($rowvpc['speed'] == $rowuo['speed']) {
$round1u = 1;
$round1uo = 1;
}

//Round 2 - Acceleration
if ($rowvpc['acceleration'] < $rowuo['acceleration']) {
$round2u = 0;
$round2uo = 1;
}
if ($rowvpc['acceleration'] > $rowuo['acceleration']) {
$round2u = 1;
$round2uo = 0;
}
if ($rowvpc['acceleration'] == $rowuo['acceleration']) {
$round2u = 1;
$round2uo = 1;
}

//Round 3 - Stability
if ($rowvpc['stability'] < $rowuo['stability']) {
$round3u = 0;
$round3uo = 1;
}
if ($rowvpc['stability'] > $rowuo['stability']) {
$round3u = 1;
$round3uo = 0;
}
if ($rowvpc['stability'] == $rowuo['stability']) {
$round3u = 1;
$round3uo = 1;
}

//Round 4 - Final (Calculations)
$round4u = $round1u + $round2u + $round3u;
$round4uo = $round1uo + $round2uo + $round3uo;

if ($round4u < $round4uo) {
$winchance = 1;
}
if ($round4u == $round4uo) {
$winchance = 2;
}
if ($round4u > $round4uo) {
$winchance = 3;
}





//Loss
if ($winchance == 1) {
$winner_id = $opponent_id;
}

//Last Chance
if ($winchance == 2) {

$lastchance = mt_rand(0, 1);

if ($lastchance == 1) {
$winner_id = $player_id;
} else {
$winner_id = $opponent_id;
}

I may throw some more random numbers in there so even a close match can be had by either side

Re: Beta Testers wanted! Tatooine Life needs you!

Posted: Wed May 27, 2020 1:52 pm
by Benoz
Hey guru, here's the link to the final map. I exported it as a JPG with 50% quality for size and web optimization. I also added images of 14 different selected buildings, so you can assign each to a place in your game. Additionally I threw in the photoshop and illustrator file if you ever consider changing or expanding it or if you just want to use separate pieces. https://www.dropbox.com/s/fmurr698tlh9w ... p.zip?dl=0

Re: Beta Testers wanted! Tatooine Life needs you!

Posted: Thu May 28, 2020 5:45 am
by Anakin
Well i cannot see a lot from the code @guru, it seems that rowvpc is wrong (or rowuo? not sure what is the attacker values)

the problem depends on the variables. What i noticed so far:
- for everyone's barc speeder, the vehicle id is 36
- when you pick your speeder you randomly get a new opponent and his values are displayed correctly. But when i look in the website source, there are still the values of the old player that was my opponent before i selected my vehicle, so maybe it's just a problem of not refreshing the values for the attacker?


But i thought about new calculations for the win/loos that makes it more interesting and depending on your values + some random values, so you won't loose always.
  • best of three
  • variable energy loose depending on your vehicle values
  • different loose/win probabilities depending on track length

kind of Python Pseudo code:

Code: Select all

#How much energy is needed in worst case? Check before race start. 3 races, so 3 times the energy cost.
MaxEnergyCost = 3 * ($AttackerSpeedMax$ + $AttackerAccMax$) /  $AttackerStability$

# player1 = attacker, you loose randomly between 0 and 10 % of your stats (maybe this needs to be adjusted)
player1 = {
	speed : $AttackerSpeedMax$ *  (1 - 0.1 * random(0,1)),
	acc :  $AttackerAccMax$ *  (1 - 0.1 * random(0,1))
}

player2 = {
	speed : $DefenderSpeedMax$ *  (1 - 0.1 * random(0,1)),
	acc :  $DefenderAccMax$ *  (1 - 0.1 * random(0,1))
}

RealEnergyCost = 3 * (player1.speed + player1.acc) /  $AttackerStability$

win = 0
for i in range(3):
	# random choose one of the 3 track lengths
	s_total = random(10 or 75 or 500)
	
	time_acc1 = player1.speed / player1.acc			# time you need to accelerate to max speed
	s_acc1 = (player1.acc / 2) * pow(time_acc1)		# distance you need to accelerate to max speed
	s_speed1 = s_total - s_acc1				# remaining distance you'll race with max speed
	time1 = 0						# init player 1 total time
	
	# case 1: the track is too short, so you never reach max speed
	# case 2: you reach max speed, so total speed is the sum of bother acc and speed time
	if s_acc1 >= s_total:
		time1 = sqrt( (2 * s_total) / player1.acc )
	else:
		time1 = time_acc1 + (s_speed1 / player1.speed)
		
	... repeat with player2 values ...
	
	# in doubt (that shouldn't happen when calculating with floats) the defender wins
	if time1 > time2:
		win = win + 1
	else:
		win = win -1
		
if win > 0:
	player 1 won
else:
	player 2 won
	


Here is a picture with the values of your already added vehicles and how they would win/loose
Hidden/Spoiler:
Image
if you wanna play a bit around with the excel you can download it here: https://www.dropbox.com/s/e3pim1k7akk8q ... .xlsx?dl=0

Re: Beta Testers wanted! Tatooine Life needs you!

Posted: Thu May 28, 2020 8:21 am
by guru
Ok. I may redo the fight and race code regardless because I want images and maybe animation or
Some form of interaction mid fight like for fighting I want to have hit points and have them actually land hits and dodge I’m also adding 3 more attributes like luck and such from swg.

Thanks for your feedback I’ll check out the needed
Changes today

Re: Beta Testers wanted! Tatooine Life needs you!

Posted: Thu May 28, 2020 1:25 pm
by Anakin
For the race you could do an animation for the 3 rounds, so the vehicles moving forward after each round racing to see how close it is. Just an idea

Re: Beta Testers wanted! Tatooine Life needs you!

Posted: Sat Sep 05, 2020 7:29 pm
by Benoz
Hello guru, are you still going to develope on the game or is it currently on hold?

Re: Beta Testers wanted! Tatooine Life needs you!

Posted: Sun Sep 06, 2020 9:16 am
by guru
I haven’t made updates since I got coronavirus I’ve been working on health and fitness and a little progress in crypto currency work I’ll come back to this soon as I can. I love the project just a lot has changed

Re: Beta Testers wanted! Tatooine Life needs you!

Posted: Sun Sep 06, 2020 10:51 am
by Benoz
Alright, that's of course totally understandable. Take your time and get well soon!