Welcome, Guest. Please login or register.
Did you miss your activation email?
November 23, 2024, 12:51:21 AM
Home Help Login Register
News: Zombie Master 2 discussion

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Replacing player spawns doesn't work correctly
Pages: [1]
Author Topic: Replacing player spawns doesn't work correctly  (Read 4767 times)
CS25230
Poster

Posts: 51



« on: July 29, 2010, 09:39:36 AM »

When I replace the player spawns it will only use the ones I made on the 2nd round. But on the first round it will use the player spawns built into the map. Is there a server setting I can use that will fix this?

I checked the .txt file and it does indeed have replacespawns 1 in it before anyone asks.
« Last Edit: July 29, 2010, 09:44:34 AM by CS25230 »
Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #1 on: July 29, 2010, 10:46:48 AM »

Which map is this? Could you post/link both the map and .txt file?

How are you testing this? Is it on a proper server or by yourself in a local MP game?
CS25230
Poster

Posts: 51



« Reply #2 on: July 29, 2010, 11:02:07 AM »

Sure thing, it's cs_italy.

I'm hosting this locally for testing but I've seen it happen on my community's server when they were hosting dm_peachs_castle with an arm file I made.



# Trouble in Terrorist Town weapon/ammo placement overrides
# For map: cs_italy
# Exported by: CeeEss
setting: replacespawns 1
item_ammo_pistol_ttt 622.4682 -736.3396 -115.4494 0.172 -0.817 -14.123
item_ammo_pistol_ttt 610.7672 -738.0130 -115.0531 -0.826 0.172 -14.045
item_ammo_pistol_ttt -425.7211 -80.1881 -151.6217 -0.105 -0.020 -0.032
item_ammo_pistol_ttt -1040.2141 -2001.6444 -151.6693 -0.147 -0.018 -0.044
item_ammo_pistol_ttt 598.2990 1549.7507 48.3430 -0.136 -0.019 -0.041
item_ammo_pistol_ttt 567.3079 2492.2595 128.3430 -0.136 -0.019 -0.041
item_ammo_pistol_ttt -344.3851 1721.5543 -151.5923 -0.316 93.463 -0.403
item_ammo_pistol_ttt -696.6829 750.4558 8.3727 -0.110 -0.019 -0.033
item_ammo_pistol_ttt 623.4771 -697.9620 -151.6294 0.076 -0.022 0.020
item_ammo_pistol_ttt 612.1895 -699.2844 -151.6401 0.144 -0.024 0.004
item_ammo_pistol_ttt -1187.1353 1863.9785 -123.1106 0.363 0.015 -0.079
item_ammo_pistol_ttt 553.3912 -509.2617 -41.6336 0.073 -0.036 0.012
item_ammo_pistol_ttt 573.3853 -513.3383 -41.6240 -0.098 0.060 -0.099
item_ammo_pistol_ttt 532.0443 -513.6750 -41.6401 -0.132 0.148 -0.137
weapon_zm_revolver 1004.7114 -677.0334 -150.1092 2.465 -20.330 -83.252
weapon_zm_revolver 1039.5897 -779.4033 -85.7146 2.199 -2.971 -93.248
weapon_zm_revolver 817.5347 -657.6404 -158.0098 3.320 1.593 -83.775
weapon_zm_revolver 573.6091 -641.2531 -157.9570 3.292 -8.057 -85.093
weapon_zm_revolver 537.0370 -422.1516 -158.1228 2.477 -20.306 -82.947
weapon_zm_revolver 458.7664 -636.2293 -158.0207 3.002 1.409 -84.124
weapon_zm_revolver 323.5174 -639.3780 -158.1938 1.827 12.467 -86.267
weapon_zm_revolver 84.1288 -443.8795 -150.0394 3.128 -19.413 -83.504
weapon_zm_revolver 318.9647 -428.2833 -158.0871 2.528 -10.817 -84.104
weapon_zm_revolver 782.1806 -393.9146 -158.0823 1.950 -154.613 -85.882
weapon_zm_revolver 753.9172 -192.7420 -158.1089 1.742 -12.526 -86.244
weapon_zm_revolver 943.5947 -98.3301 -150.0435 3.442 -20.360 -82.852
weapon_zm_revolver 565.9507 -167.5478 -158.0904 2.447 -20.361 -83.676
weapon_zm_revolver 352.3869 -154.0946 -158.0383 3.355 -19.773 -83.118
weapon_zm_revolver 305.1006 -246.7811 -158.0759 2.434 -20.386 -84.003
weapon_zm_revolver 204.5001 -132.7486 -150.0857 2.443 -20.369 -83.781
weapon_zm_revolver 191.4095 -702.9686 -150.0296 3.351 -17.912 -83.305
weapon_zm_revolver 326.7256 33.1410 -158.1118 2.467 -20.321 -83.195
item_ammo_smg1_ttt 648.3896 -732.6425 -116.2818 -0.264 -2.259 -14.067
item_ammo_smg1_ttt 635.3824 -732.6208 -116.2910 -0.217 -2.267 -14.073
item_ammo_smg1_ttt -263.5005 -1048.6841 -151.5735 0.597 -0.003 0.389
item_ammo_smg1_ttt 1011.6470 757.3052 -191.5147 -0.796 0.003 -0.646
item_ammo_smg1_ttt -1362.5972 1637.2878 -151.5756 0.527 -0.004 0.342
item_ammo_smg1_ttt 649.6027 -698.6032 -151.5679 -0.003 0.038 -0.019
item_ammo_smg1_ttt 636.5496 -699.3744 -151.5934 -0.025 0.034 -0.043
item_ammo_smg1_ttt -1216.3278 1865.2655 -123.0313 0.696 -0.008 0.406
item_ammo_smg1_ttt 552.3582 -257.5568 -41.5411 -0.056 -0.019 -0.128
item_ammo_smg1_ttt 586.6127 -254.5593 -41.5957 0.004 -0.025 0.117
item_ammo_smg1_ttt 512.6735 -253.8011 -41.5797 -0.058 0.018 -0.347
weapon_zm_shotgun -344.4390 -1124.9498 -150.7250 -0.354 8.302 84.157
weapon_zm_shotgun 195.2845 345.3949 -150.7385 -0.200 8.770 83.434
weapon_zm_shotgun -1202.9929 1244.2782 -150.7361 -0.227 8.297 83.564
weapon_zm_shotgun -1117.0500 -204.2755 -150.7289 -0.310 8.300 83.948
weapon_zm_shotgun -15.9407 1457.8856 -150.6947 0.529 -8.331 -86.094
weapon_ttt_m16 -412.1199 -96.2462 -150.8525 2.047 58.273 85.028
weapon_ttt_m16 -1056.3264 -1976.4022 -150.8191 2.273 -8.225 84.466
weapon_ttt_m16 592.3876 1573.0812 49.1600 2.080 -16.647 85.385
weapon_ttt_m16 569.7566 2474.7083 129.1468 2.169 -8.359 84.162
weapon_ttt_m16 -346.1203 1734.7476 -150.7919 2.430 6.302 84.767
weapon_ttt_m16 -700.6398 729.6127 9.1486 2.151 -8.341 84.179
weapon_ttt_m16 -1131.6824 -491.3365 -140.5123 2.037 -8.137 84.294
weapon_zm_molotov 450.1771 -282.3395 -121.4665 1.718 0.007 -1.472
weapon_zm_molotov 442.3930 -280.8189 -121.4966 0.343 0.003 0.122
weapon_zm_molotov 445.8213 -289.2322 -121.4677 1.450 0.010 -1.173
weapon_zm_molotov -1248.1013 1208.3384 -114.4648 2.834 -0.016 -2.812
weapon_zm_molotov -1058.3754 1722.5712 -147.4147 0.162 -0.222 -0.029
weapon_zm_molotov -1076.5228 1714.5669 -147.4950 0.297 -0.129 -0.061
weapon_zm_molotov 376.3611 1856.1198 12.5959 2.546 -0.126 -2.597
weapon_zm_molotov 346.8972 1855.6418 12.5763 3.019 -0.132 -3.068
weapon_zm_molotov 881.6134 2098.2949 132.6355 -3.933 8.909 -4.026
weapon_zm_molotov -657.2791 149.9748 12.5204 0.477 0.005 -0.186
weapon_zm_molotov -674.1029 549.8083 12.5132 0.346 0.002 -0.028
weapon_zm_molotov -1361.2299 -20.8177 12.6025 2.304 -0.125 -2.388
weapon_zm_molotov -1354.8258 -9.1684 12.5186 0.420 0.004 -0.130
weapon_zm_sledge 921.9604 2314.3806 4.4266 18.561 0.265 2.863
weapon_zm_sledge -346.6889 -139.9241 -27.5767 18.534 0.204 2.864
weapon_zm_sledge -1086.8287 -1608.6277 -147.5749 18.546 0.308 2.872
item_box_buckshot_ttt 579.5809 -744.8683 -113.3038 0.388 1.173 -14.809
item_box_buckshot_ttt 580.3281 -729.6677 -117.0790 0.306 1.040 -14.415
item_box_buckshot_ttt -340.8569 -1143.9214 -151.5878 -0.995 -0.003 0.781
item_box_buckshot_ttt 201.4004 360.7731 -151.6220 0.289 0.003 -0.147
item_box_buckshot_ttt -1199.3546 1261.2135 -151.5861 -0.971 -0.014 0.836
item_box_buckshot_ttt -1121.6100 -191.2984 -151.6654 -0.326 -0.004 -0.252
item_box_buckshot_ttt 582.4180 -709.5465 -151.6175 -0.434 0.000 0.438
item_box_buckshot_ttt 581.5733 -696.5805 -151.6221 0.295 0.003 -0.152
item_box_buckshot_ttt -1259.2443 1864.2753 -123.0868 -1.109 0.015 1.082
item_box_buckshot_ttt 399.3205 -382.4525 -41.5869 -0.100 -0.190 0.174
item_box_buckshot_ttt 397.3951 -345.1039 -41.6132 -0.232 0.003 0.015
item_box_buckshot_ttt 396.6858 -432.4995 -41.6160 -0.140 -0.008 0.052
ttt_random_ammo 911.5514 -576.4216 -79.1209 0.688 0.004 0.610
ttt_random_ammo 415.2119 -354.6704 -126.5758 1.457 0.034 1.759
ttt_random_ammo 671.1291 -345.7395 -119.1948 -0.366 1.512 0.304
ttt_random_ammo 640.0250 -336.6363 -119.1389 -0.099 -0.937 0.631
ttt_random_ammo 461.5882 -385.4017 -127.6446 0.056 0.000 -0.004
ttt_random_ammo 442.8275 -348.1230 -95.6405 0.062 0.000 0.005
ttt_random_ammo -392.9193 1864.3157 -119.6077 0.607 0.005 0.685
ttt_random_ammo -376.8280 1898.3521 -119.5580 0.987 -1.819 -0.037
ttt_random_ammo -599.8405 2046.1925 -119.6799 0.046 0.000 -0.034
ttt_random_ammo 949.4778 1930.7993 47.3778 0.146 0.001 0.117
ttt_random_ammo 660.1612 -463.7103 -127.6033 -0.680 -2.267 0.014
ttt_random_ammo 660.0188 -428.6290 -127.5950 -1.027 0.690 0.126
ttt_random_ammo 672.0867 2108.7847 152.3795 0.164 0.001 0.140
ttt_random_ammo 736.8499 2107.2737 152.3938 0.803 0.008 0.924
ttt_random_ammo -268.5617 708.9135 8.3615 0.065 0.000 0.011
ttt_random_ammo -471.1567 475.9415 8.3615 0.066 -0.000 -0.011
ttt_random_ammo -815.4005 848.8646 -119.1540 0.186 -0.000 -0.078
ttt_random_ammo -785.1880 855.4418 -119.1171 1.302 0.017 1.366
ttt_random_ammo -791.7491 903.3851 -95.1208 0.706 0.004 0.622
ttt_random_ammo -1381.5482 1.0766 8.4414 0.864 -5.842 2.272
ttt_random_ammo 71.1401 615.2658 -151.6714 -0.046 -0.000 -0.031
weapon_zm_mac10 -266.9329 -1022.6528 -150.7247 -0.251 -40.388 -88.860
weapon_zm_mac10 1005.3430 780.3699 -190.7413 -0.189 -37.647 -88.544
weapon_zm_mac10 -1345.5680 1634.5709 -150.6764 0.337 -43.474 -87.798
weapon_zm_mac10 -589.3391 2119.7178 8.8924 -0.379 -92.820 87.565
item_ammo_357_ttt 597.0956 -743.4048 -113.7229 0.467 0.289 -14.904
item_ammo_357_ttt 597.9053 -728.4373 -117.4535 0.508 0.380 -14.738
item_ammo_357_ttt 924.3395 1978.5227 128.3463 0.453 0.061 0.050
item_ammo_357_ttt -800.6277 729.2623 160.3759 0.459 0.058 0.037
item_ammo_357_ttt 599.5433 -710.4246 -151.6852 0.447 0.073 0.062
item_ammo_357_ttt 599.9305 -696.8102 -151.6396 0.456 0.058 0.044
item_ammo_357_ttt -1237.3997 1865.3583 -123.1526 0.744 0.209 -0.021
item_ammo_357_ttt 703.1246 -384.0422 -41.6636 1.151 -0.149 -0.168
item_ammo_357_ttt 705.3469 -409.9230 -41.6515 0.743 0.076 0.087
item_ammo_357_ttt 705.7340 -356.0754 -41.6077 0.745 -0.129 0.029
item_ammo_revolver_ttt -1166.0820 1862.8076 -123.1478 -0.560 -7.591 -0.091
item_ammo_revolver_ttt 703.6335 2108.6130 152.3766 -0.009 0.275 0.060
item_ammo_revolver_ttt -884.3729 918.4569 -95.1401 0.717 0.208 -0.019
item_ammo_revolver_ttt -1290.6769 1016.2850 -102.5815 6.521 0.491 5.094
item_ammo_revolver_ttt 552.5687 -382.2041 -41.5896 0.483 -0.052 -0.005
item_ammo_revolver_ttt 475.7556 -380.9502 -41.6227 0.719 -0.142 -0.132
item_ammo_revolver_ttt 630.0146 -387.8666 -41.6278 0.504 0.029 0.015
ttt_playerspawn 793.1534 -641.0552 -159.5134 0.000 -22.055 0.042
ttt_playerspawn 548.3397 -640.1346 -159.6113 -0.025 -0.000 0.025
ttt_playerspawn 282.8016 -645.6448 -159.5135 0.043 -2.140 0.001
ttt_playerspawn 299.1054 -403.9198 -159.5619 -0.015 -0.000 0.015
ttt_playerspawn 332.8063 -140.4377 -159.6172 -0.023 -0.000 0.023
ttt_playerspawn 756.3331 -385.5598 -159.5312 0.049 -11.000 -0.049
ttt_playerspawn 752.8528 -168.7539 -159.6356 -0.022 -0.000 0.022
ttt_playerspawn 962.7358 -80.7292 -151.5108 -0.006 -0.051 -0.003
ttt_playerspawn 324.1022 59.7321 -159.5773 -0.014 -0.000 0.014
ttt_playerspawn 1061.6855 -788.0485 -86.4198 3.775 1.160 -0.090
ttt_playerspawn 64.6855 -448.6473 -151.6337 -0.030 -0.000 0.030
ttt_playerspawn 175.9007 -128.4408 -151.6116 -0.028 -0.000 0.028
ttt_playerspawn 172.0674 -719.6463 -151.5379 0.061 0.065 0.054
ttt_playerspawn 565.1337 -143.2431 -159.6316 -0.030 -0.000 0.030
ttt_playerspawn 283.9969 -246.4729 -159.5712 -0.015 -0.000 0.015
ttt_playerspawn 429.9633 -635.8244 -159.6028 -0.021 -0.000 0.021
ttt_playerspawn 1039.9076 -676.2398 -151.6260 -0.020 -0.000 0.020
ttt_playerspawn 535.9376 -446.3439 -159.5966 -0.019 -0.000 0.019
weapon_zm_rifle 927.4670 1961.8657 129.3705 3.244 13.418 65.314
weapon_zm_rifle -824.2164 741.8895 161.3722 3.308 11.781 65.427
weapon_ttt_smokegrenade 449.7014 -437.5401 -119.4691 1.226 0.012 -0.926
weapon_ttt_smokegrenade 452.3538 -429.3511 -119.3951 2.296 -0.121 -2.339
weapon_ttt_smokegrenade 443.6160 -431.6088 -119.4728 0.907 0.012 -0.567
weapon_ttt_smokegrenade -945.4647 -1254.1273 -147.4789 0.490 0.005 -0.182
weapon_ttt_smokegrenade -945.0839 -1229.5354 -147.4789 0.487 0.005 -0.179
weapon_ttt_smokegrenade -924.0519 -1247.7861 -147.4633 2.390 -0.005 -2.307
weapon_ttt_smokegrenade -926.7744 -1224.3679 -147.4789 0.489 0.005 -0.181
weapon_ttt_smokegrenade -1137.1785 1587.2202 -147.4802 0.272 -0.173 -0.055
weapon_ttt_smokegrenade -1111.6085 1609.4797 -147.4344 0.195 -0.209 -0.037
weapon_ttt_smokegrenade -521.4471 1811.6691 12.5902 2.639 -0.129 -2.718
weapon_ttt_smokegrenade -538.3707 1812.3606 12.6140 1.996 -0.121 -2.058
weapon_ttt_smokegrenade -555.2273 1811.9291 12.5367 2.379 -0.004 -2.295
weapon_ttt_smokegrenade 795.0438 2295.2024 4.5336 1.160 0.012 -0.954
weapon_ttt_smokegrenade 794.5333 2335.2632 4.5369 1.970 0.003 -1.852
weapon_ttt_smokegrenade 794.3190 2314.8584 4.5720 3.099 -0.132 -3.197
weapon_ttt_smokegrenade 560.3594 429.9816 -147.4666 1.188 0.012 -0.975
weapon_ttt_smokegrenade 599.2970 427.5442 -147.4633 1.985 0.003 -1.859
weapon_ttt_smokegrenade 643.0085 425.6802 -147.4723 0.729 0.010 -0.458
weapon_ttt_smokegrenade -693.7932 1539.2289 12.5587 3.536 -0.113 -3.662
weapon_ttt_smokegrenade -695.2586 1507.3740 12.5527 3.706 -0.118 -3.841
weapon_ttt_smokegrenade -693.2181 1475.4480 12.5568 3.498 -0.115 -3.604
weapon_ttt_smokegrenade -425.5146 -186.7825 -27.4658 1.387 0.011 -1.212
weapon_ttt_smokegrenade -1121.4709 416.1867 -143.4816 0.540 0.005 -0.140
weapon_ttt_confgrenade 512.5127 -301.4837 -120.4533 1.495 0.225 -0.626
weapon_ttt_confgrenade 500.6865 -302.9453 -120.4834 1.933 0.226 -0.810
weapon_ttt_confgrenade 507.9380 -307.1909 -120.4896 2.023 0.259 -0.847
weapon_ttt_confgrenade -904.6755 -1247.5128 -148.4843 1.593 0.146 -0.407
weapon_ttt_confgrenade -908.2690 -1224.4736 -148.4035 0.624 0.132 -0.159
weapon_ttt_confgrenade -446.3175 2187.5278 -148.4855 2.112 0.257 -0.667
weapon_ttt_confgrenade -466.2490 2168.9795 -148.5007 2.348 0.234 -0.742
weapon_ttt_confgrenade 361.5109 1856.4396 11.5945 0.692 -0.803 -0.245
Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #3 on: July 29, 2010, 12:09:08 PM »

It's working for me. I'm not sure you're letting the round start properly in your testing. The entities are not loaded from the script until a round starts.

In the console after a round starts, you should see something like this in blue text:
Quote
Weapon/ammo placement script found, attempting import...
Reading settings from script...
Removing existing player spawns
Removing existing weapons/ammo
Importing entities...
Spawned 176 entity found in script.
Weapon placement script import successful!

If that's not there, the game is probably still waiting for players.

Make sure you either set ttt_min_players 1, or spawn a bunch of bots to get sufficient players to start a round after loading the map.
CS25230
Poster

Posts: 51



« Reply #4 on: July 29, 2010, 01:30:09 PM »

Here I recorded it:

http://www.youtube.com/watch?v=iPLUcBCGP8A&fmt=22

What am I doing wrong?
« Last Edit: July 29, 2010, 01:32:47 PM by CS25230 »
Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #5 on: July 29, 2010, 02:45:47 PM »

I was able to reproduce your issue and fix it. It happened when the engine had not gotten around to removing the old spawnpoints before the player spawned. It now waits with spawning players until the next server tick, fixing the issue.

I believe one of the reasons the bug hasn't been noticed before is that the scripts included with TTT all have 32 spawns, which makes it more likely that you spawn at one of them that first round than when there are 16.

I can put up a build with the fix if it's urgent. There will probably be another proper update next week if it can wait.
CS25230
Poster

Posts: 51



« Reply #6 on: July 29, 2010, 02:52:24 PM »

Take your time. :D

I'm just glad you caught it and fixed it. Thankyou!
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Replacing player spawns doesn't work correctly « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.009 seconds with 17 queries.