seb_iadrang.wrp

Added by SnakeMan about 6 years ago

I used this command line:

bin\roller.exe seb_iadrang.wrp --objects --replace-forests 'vte_jungle_block_to_single.yaml' --unique-objects

And this is how my yaml looks like:

# VTE ilo canopy 50m block
vte_objects\vte_iles_su_ctver_pruhozi.p3d:
    :sectors: [:N, :E, :W, :S]
    :min: 40
    :max: 60
    :models:
        vte_objects\vte_tree08.p3d: 0.3
        vte_objects\vte_tree08.p3d: 10
        vte_objects\vte_tree08.p3d: 0.5
        vte_objects\vte_tree08.p3d: 0.8

# VTE ia drang 50m block
vte_objects\vte_les_nw_ctver_pruhozi.p3d:
    :sectors: [:N, :E, :W, :S]
    :min: 40
    :max: 60
    :models:
        vte_objects\vte_tree06.p3d: 0.3
        vte_objects\vte_tree06.p3d: 10
        vte_objects\vte_tree06.p3d: 0.5
        vte_objects\vte_tree06.p3d: 0.8

# VTE low canopy
vte_objects\vte_low_canopy.p3d:
    :sectors: [:N, :E, :W, :S]
    :min: 40
    :max: 60
    :models:
        vte_objects\vte_tree06.p3d: 0.3
        vte_objects\vte_tree06.p3d: 10
        vte_objects\vte_tree06.p3d: 0.5
        vte_objects\vte_tree06.p3d: 0.8

# SEB jungle variation 1
sebnam_obj\sebles_su_ctver_pruhozi_var1.p3d:
    :sectors: [:N, :E, :W, :S]
    :min: 40
    :max: 60
    :models:
        vte_objects\vte_tree06.p3d: 0.3
        vte_objects\vte_tree06.p3d: 10
        vte_objects\vte_tree06.p3d: 0.5
        vte_objects\vte_tree06.p3d: 0.8

# SEB jungle variation 1
sebnam_obj\sebles_su_ctver_pruhozi_var2.p3d:
    :sectors: [:N, :E, :W, :S]
    :min: 40
    :max: 60
    :models:
        vte_objects\vte_tree06.p3d: 0.3
        vte_objects\vte_tree06.p3d: 10
        vte_objects\vte_tree06.p3d: 0.5
        vte_objects\vte_tree06.p3d: 0.8

# SEB jungle variation 1
sebnam_obj\sebles_su_ctver_pruhozi_var3.p3d:
    :sectors: [:N, :E, :W, :S]
    :min: 40
    :max: 60
    :models:
        vte_objects\vte_tree06.p3d: 0.3
        vte_objects\vte_tree06.p3d: 10
        vte_objects\vte_tree06.p3d: 0.5
        vte_objects\vte_tree06.p3d: 0.8

When Roller is ran, it wont replace the sebnam_obj\ jungle forest blocks that are in the wrp.

What did I do wrong?


Replies (13)

RE: seb_iadrang.wrp - Added by kju about 6 years ago

Seems to have an error in the posted yaml file:

Checking for latest version at:
http://dev-heaven.net/projects/list_files/
Roller is up to date
--- Importing ---
Reading 'seb_iadrang.wrp'...15104652 bytes in 18.9 seconds

Original format: 4WVR (OFP)
Map size: 12800.0x12800.0m
Terrain grid: 256x256 (50.0m cells)
Texture grid: 256x256 (50.0m cells)
Total Textures: 65 (including 0 dummies), of which 0 are unused
Total Objects: 115830 (including 1 dummy), of which 83 are unique

--- Processing ---
Replacing forests: Reading 'seb_to_vte.yaml'...

Program closed after that automatically.

RE: seb_iadrang.wrp - Added by Spooner about 6 years ago

Worked for me, but made no replacements in the island, perhaps because of mistyped forest block paths (perhaps character case, which is important):

Replacing forests: Reading 'seb_jungle_block_to_single.yaml'...replaced 0
  forest blocks with 0 trees and bushes...1840 bytes in 0.3 seconds

I suspect the problem you had, kju, is that you used seb_to_vte.yaml which is an object-replacement file, not a forest replacement file.

EDIT: Nevertheless, Roller should be a little more robust when fed bad data and should at least give an error message.

RE: seb_iadrang.wrp - Added by Spooner about 6 years ago

When I look at the unique objects file, generated from the original wrp file, the "nam" objects are:

sebnam_obj\sebbouda2_vnitrek.p3d
sebnam_obj\sebbudova4_in.p3d
sebnam_obj\sebcamobouda2_vnitrek.p3d
sebnam_obj\sebelekrovi2.p3d
sebnam_obj\sebkamen2_zula.p3d
sebnam_obj\sebkamen5_zula.p3d
sebnam_obj\sebker rakosi.p3d
sebnam_obj\sebkrovi4.p3d
sebnam_obj\sebkrovi_long.p3d
sebnam_obj\sebles_su_ctver_pruhozi_var1.p3d
sebnam_obj\sebles_su_ctver_pruhozi_var2.p3d
sebnam_obj\sebles_su_ctver_pruhozi_var3.p3d
sebnam_obj\sebpalm_str_liskac_.p3d
sebnam_obj\sebplutek.p3d
sebnam_obj\sebpristresek_mensi.p3d
sebnam_obj\sebpytle.p3d
sebnam_obj\sebpytle_bsl.p3d
sebnam_obj\sebstr borovice horska.p3d
sebnam_obj\sebstr krovisko vysoke.p3d
sebnam_obj\sebstr osika.p3d
sebnam_obj\sebstr_fikovnik.p3d
sebnam_obj\sebstr_fikovnik2.p3d
sebnam_obj\sebstr_fikovnik_ker.p3d
sebnam_obj\sebstr_liskac.p3d
sebnam_obj\sebtrailpath10 100.p3d
sebnam_obj\sebtrailpath10 25.p3d
sebnam_obj\sebtrailpath10 50.p3d
sebnam_obj\sebtrailpath10 75.p3d
sebnam_obj\sebtrailpath12.p3d
sebnam_obj\sebtrailpath25.p3d
sebnam_obj\sebtrailpath6.p3d
sebnam_obj\sebtrailpath6konec.p3d

So I don't quite understand why it isn't finding forests to replace using this seb_jungle_block_to_single.yaml file.

RE: seb_iadrang.wrp - Added by kju about 6 years ago

Yep that was my fault. Copied the wrong filename by mistake.

Still the fault should give an error, no?

RE: seb_iadrang.wrp - Added by Spooner about 6 years ago

Yes, you should at least get a Ruby error if something goes wrong, even if you don't get a Roller-specific error. The only time the application should crash, and we can do nothing about it, is when drawing a satellite mask (since if you send bad data, such as pixel out-of-bounds, to the graphics library, it will just die on you).

RE: seb_iadrang.wrp - Added by SnakeMan about 6 years ago

unique objects file contains all lower case characters, does Roller in fact use the case that is in the WRP file originally, or does it read the objects and yaml files, then lowercase everything before start to process it?

How I did it was to grab the unique files jungle block filenames (lowercase) and write the yaml file from that, so they are 100% correct... yet lower case :)

RE: seb_iadrang.wrp - Added by kju about 6 years ago

From what I recall, after we had the problem with case sensitivity,
Spooner implemented an automated toLower.

RE: seb_iadrang.wrp - Added by Spooner about 6 years ago

Yeah, that should work fine.

I have to say I don't actually remember the details of which case is which and where! It is going to have to be after the weekend before I can look at this properly.

RE: seb_iadrang.wrp - Added by SnakeMan about 6 years ago

Replacing the forest blocks is CASE SENSITIVE, however unique objects are all saved with lowercase...

Would be really great to have Roller lowercase everything before it starts to the replace process.

RE: seb_iadrang.wrp - Added by kju about 6 years ago

Can you please open a ticket for it. Thanks!

RE: seb_iadrang.wrp - Added by SnakeMan about 6 years ago

Spooner, please could you fix the UPPER and lowercase issue on Roller, it would be much appreciated.

I guess I could do it myself, the sources are there... but I don't know anything about the ruby thing and then it would only benefit me, we of course would like to fix this for everyone.

Please, this fix should take mostly 5-10mins from you, add extra 5min to upload new package and you're done :)

RE: seb_iadrang.wrp - Added by kju about 6 years ago

hi SnakeMan!

please create a ticket and assign it to Spooner.
Forum is not for task management/bug reporting.

RE: seb_iadrang.wrp - Added by SnakeMan about 6 years ago

I would love to test the latest fixes, but how do you download/compile working Roller from the ... repository(?).

(1-13/13)