Avali Nexus

Full Version: Avali Nexus Forum Thread 3: A crowd.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500
(01-28-2016, 04:52 AM)Lost Rinoah Wrote: [ -> ]
(01-28-2016, 04:03 AM)Surge Wrote: [ -> ]Felt good to play men of war with friends again, even if we got literally nowhere and at one point I just flipped on march of cambreadth so I could pretend we were dying heroically or actually going to pull through at some point.

I like that game, even though I suck at it.
We have literally spent entire afternoons flailing our way through singular missions.
Hehh... I can't handle leading as much as I'm supposed to. So I end up with one squad spearheading while having to leave everything else to their own devices. It took me like 10 hours per mission set to easy in single player. x.o
(01-28-2016, 05:02 AM)Lost Rinoah Wrote: [ -> ]Hehh... I can't handle leading as much as I'm supposed to. So I end up with one squad spearheading while having to leave everything else to their own devices. It took me like 10 hours per mission set to easy in single player. x.o
Men of War is a game of battle lines, which is the only reason it is even remotely manageable, you park infantry in cover a reasonable distance away and forget about them, then to attack you move them closer and involve a tank. Usually we get by by making me the designated tank commander, so I micro tanks 24/7 to try and make things happen without wasting limited resources.
A quick mental inventory on characters shows that considering I have done nothing "serious" with any of them there are FAR too many I won't consider "one-offs"
*Flips table of values*
ARGIULWUDHBNWIDHUWIHU
THIS IS RIDICULOUS.
Here's the very basic, absolute minimum barebones version of the LUA code that I'm using right now:
Code:
val1 = 0.25
val2 = 2
val3 = 1

repeat
    wait(0.01)
    print(val3 .. "\n --- \n")
    val3 = val3 - val1 / 100 * val2
until (val3 == 0)

Makes sense, right?
val3 goes to 0.995, then to 0.990, and so on, until it's 0.
...Or rather, that's what it should be doing, because apparently I BROKE MATH ITSELF.
Here's the output I get:
Code:
1
---

1
---

0.99500000476837
---

0.99500000476837
---

0.99000000953674
---

0.99000000953674
---

0.98500001430511
---

0.98500001430511
---

0.98000001907349
---

0.98000001907349
---

0.97500002384186
---

0.97500002384186
---

0.97000002861023
---

0.97000002861023
---

0.9650000333786
---

0.9650000333786
---

0.96000003814697
---

0.96000003814697
---

0.95500004291534
---

0.95500004291534
---

0.95000004768372
---

0.95000004768372
---

0.94500005245209
---

0.94500005245209
---
and so on...
THIS MAKES NO SENSE. THIS IS NOT HOW YOU MATH. I EVEN CHECKED WITH A CALCULATOR.
(01-28-2016, 11:28 AM)Shaadaris Wrote: [ -> ]*Flips table of values*
ARGIULWUDHBNWIDHUWIHU
THIS IS RIDICULOUS.
Here's the very basic, absolute minimum barebones version of the LUA code that I'm using right now:


Code:
val1 = 0.25
val2 = 2
val3 = 1

repeat
wait(0.01)
print(val3 .. "\n --- \n")
val3 = val3 - val1 / 100 * val2
until (val3 == 0)

Makes sense, right?
val3 goes to 0.995, then to 0.990, and so on, until it's 0.
...Or rather, that's what it should be doing, because apparently I BROKE MATH ITSELF.
Here's the output I get:


Code:
1
---

1
---

0.99500000476837
---

0.99500000476837
---

0.99000000953674
---

0.99000000953674
---

0.98500001430511
---

0.98500001430511
---

0.98000001907349
---

0.98000001907349
---

0.97500002384186
---

0.97500002384186
---

0.97000002861023
---

0.97000002861023
---

0.9650000333786
---

0.9650000333786
---

0.96000003814697
---

0.96000003814697
---

0.95500004291534
---

0.95500004291534
---

0.95000004768372
---

0.95000004768372
---

0.94500005245209
---

0.94500005245209
---
and so on...
THIS MAKES NO SENSE. THIS IS NOT HOW YOU MATH. I EVEN CHECKED WITH A CALCULATOR.

What's the actual code - simplifying the code to it's intended logical steps in pseudocode won't help resolve issues with the actual code.

If I had to take a random guess, since the logic seems to be giving you approximately correct values it's type fuckery, and floats are getting cast to ints or whatever in a way that the computer doesn't play nice with.
(01-28-2016, 11:28 AM)Shaadaris Wrote: [ -> ]*Flips table of values*
ARGIULWUDHBNWIDHUWIHU
THIS IS RIDICULOUS.
Here's the very basic, absolute minimum barebones version of the LUA code that I'm using right now:




Code:
val1 = 0.25
val2 = 2
val3 = 1

repeat
wait(0.01)
print(val3 .. "\n --- \n")
val3 = val3 - val1 / 100 * val2
until (val3 == 0)

Makes sense, right?
val3 goes to 0.995, then to 0.990, and so on, until it's 0.
...Or rather, that's what it should be doing, because apparently I BROKE MATH ITSELF.
Here's the output I get:




Code:
1
---

1
---

0.99500000476837
---

0.99500000476837
---

0.99000000953674
---

0.99000000953674
---

0.98500001430511
---

0.98500001430511
---

0.98000001907349
---

0.98000001907349
---

0.97500002384186
---

0.97500002384186
---

0.97000002861023
---

0.97000002861023
---

0.9650000333786
---

0.9650000333786
---

0.96000003814697
---

0.96000003814697
---

0.95500004291534
---

0.95500004291534
---

0.95000004768372
---

0.95000004768372
---

0.94500005245209
---

0.94500005245209
---
and so on...
THIS MAKES NO SENSE. THIS IS NOT HOW YOU MATH. I EVEN CHECKED WITH A CALCULATOR.
I'm not sure what exactly you're trying to do, but I have some idea what's the operation are, also if recall correctly back in my microcontroller class you should atleast able to state print max decimal for the integer or something like
Code:
printf("Average mark = %.2f.\n", average);
(%.2f(2 decimal point float)this works on C programing but I'm not sure about lua, though I'm not sure the variables(I think what's that called val3) print twice

for buddha's shake why is the code box is still not fixed

since when there was a wing commander animated series?
[Image: n8Zf9NQ.gif]
Playing SS Vanilla with a 2 man fleet consisting of Wolf-Class, both equipped with 2 LRPD lasers, an ion cannon, harpoon missile pods(Wolf I)/Salamanders(Wolf II), and Heavy Blasters(WI)/Pulse Lasers(WII).
Pirate fleet made of a Hammerhead and a Hammerhead(D), 3 Lashers(D) and 4 Wolves(D) catches up to me after I burnt out escaping a Sindrian Dikhead patrol...
WHAT IS THIS GAME!
So... The SRSRP still needs a few more players before it can start. Anyone willing to sell your soul to get another RP? 
(01-28-2016, 04:07 PM)SilverOtter Wrote: [ -> ]So... The SRSRP still needs a few more players before it can start. Anyone willing to sell your soul to get another RP? 

I guess I'll give it a whirl.
(01-28-2016, 04:07 PM)SilverOtter Wrote: [ -> ]So... The SRSRP still needs a few more players before it can start. Anyone willing to sell your soul to get another RP? 
I'll probably just occasionally complain about the noise by which I mean things that make no sense.
(01-28-2016, 04:07 PM)SilverOtter Wrote: [ -> ]So... The SRSRP still needs a few more players before it can start. Anyone willing to sell your soul to get another RP? 
Before you start, agree to bar me before I get very dazed and attempt to join.
the progression of my face after armored warfare pit my stock M60A3 against a collection of chieftans and T-64s and I quickly found none of them could do anything to me.
[Image: wKmoa9X.gif]
(01-28-2016, 06:00 PM)Surge Wrote: [ -> ]the progression of my face after armored warfare pit my stock M60A3 against a collection of chieftans and T-64s and I quickly found none of them could do anything to me.
[Image: wKmoa9X.gif]

So far I think only the A3 has ERA at tier 5 which makes them quite durable
404 ERROR PAGE DOES NOT COMPUTE PRESS ANY KEY TO CONTINUE
(01-28-2016, 06:38 PM)Umbra Wrote: [ -> ]404 ERROR PAGE DOES NOT COMPUTE PRESS ANY KEY TO CONTINUE
*Furiously jams door-key into USB port.*
I just randomly looked at the "people online" list, and... Apparently, two guests are "printing" threads.
Is that normal, or is something wrong?
(01-28-2016, 11:28 AM)Shaadaris Wrote: [ -> ]*Flips table of values*
ARGIULWUDHBNWIDHUWIHU
THIS IS RIDICULOUS.
Here's the very basic, absolute minimum barebones version of the LUA code that I'm using right now:

Code:
val1 = 0.25
val2 = 2
val3 = 1

repeat
    wait(0.01)
    print(val3 .. "\n --- \n")
    val3 = val3 - val1 / 100 * val2
until (val3 == 0)

Makes sense, right?
val3 goes to 0.995, then to 0.990, and so on, until it's 0.
...Or rather, that's what it should be doing, because apparently I BROKE MATH ITSELF.
Here's the output I get:

Code:
1
---

1
---

0.99500000476837
---

0.99500000476837
---

0.99000000953674
---

0.99000000953674
---

0.98500001430511
---

0.98500001430511
---

0.98000001907349
---

0.98000001907349
---

0.97500002384186
---

0.97500002384186
---

0.97000002861023
---

0.97000002861023
---

0.9650000333786
---

0.9650000333786
---

0.96000003814697
---

0.96000003814697
---

0.95500004291534
---

0.95500004291534
---

0.95000004768372
---

0.95000004768372
---

0.94500005245209
---

0.94500005245209
---
and so on...
THIS MAKES NO SENSE. THIS IS NOT HOW YOU MATH. I EVEN CHECKED WITH A CALCULATOR.

But it is how math works on computers.

What you have encountered is the phenomena of Float Rounding. Basically, even decimal places to us are only rarely perfectly represented in binary. So the computer approximates as best it can.

Over time that little bit of error on EVERY SINGLE CALCULATION adds up significantly and causes weird phenomena.

In Kerbal Space Program, the phenomena would cause a ship to accelerate to speeds in excess of the speed of light when making a hairpin turn around the sun. The forces applied to the ship in such a maneuver would trigger float rounding to appear with an exponentially increasing result that would fling the ship into deep space at insane multiples of the speed of light.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500