|
[S] how to bind all used models / textures to .wrs / resources ?
#465362
04/21/17 13:49
04/21/17 13:49
|
Joined: Dec 2011
Posts: 1,823 Netherlands
Reconnoiter
OP
Serious User
|
OP
Serious User
Joined: Dec 2011
Posts: 1,823
Netherlands
|
[SOLUTION: use PRAGMA_BIND and use EVO's autobind script below] Hi, For some reason only a few of my used models/textures in my game are added to the .wrs / resources files on publish. So I am trying to add the other models and textures too through a .wdl/starter file. The starter file itself works (custom loading etc, and its the latest version). I checked in the manual how bind models/textures to resource files and came across this: LEVEL"levelname"; All entities from this map file are automatically included into the published game folder or the resource. Use this to make sure that sub-entities of levels or map entities are included. So I added it to my .wdl/starter file (besides PATH statements): LEVEL"DatamyMap.wmb"; But it seems to only add the .wmb file to the published folder but not the models + textures used in that map. Anyone know how I can effectively add all the models and textures to the resource files? (a few hundreds of files I believe) ps: dont know if this is a problem for resources, but I use external textures for my models (/so multiple models can use the same texture)
Last edited by Reconnoiter; 04/22/17 14:34.
|
|
|
Re: how to bind all used models / textures to .wrs / resources ?
[Re: Iglarion]
#465371
04/21/17 17:14
04/21/17 17:14
|
Joined: Dec 2011
Posts: 1,823 Netherlands
Reconnoiter
OP
Serious User
|
OP
Serious User
Joined: Dec 2011
Posts: 1,823
Netherlands
|
Hey Iglarion, ty for replying. I tried that and also tried loose level_load("someMapName")'s etc but for some reason the .wrs/resource file stays very small (only bmaps that I declared in code like e.g. BMAP* icon_item = "icon_item.bmp"; seem to be put in the resource file).
Last edited by Reconnoiter; 04/21/17 17:16.
|
|
|
Re: how to bind all used models / textures to .wrs / resources ?
[Re: Iglarion]
#465376
04/21/17 19:44
04/21/17 19:44
|
Joined: Jun 2007
Posts: 1,337 Hiporope and its pain
txesmi
Serious User
|
Serious User
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
|
Have you tried to set original resources paths as project paths?
Last edited by txesmi; 04/21/17 19:49.
|
|
|
Re: how to bind all used models / textures to .wrs / resources ?
[Re: Iglarion]
#465377
04/21/17 19:59
04/21/17 19:59
|
Joined: Dec 2011
Posts: 1,823 Netherlands
Reconnoiter
OP
Serious User
|
OP
Serious User
Joined: Dec 2011
Posts: 1,823
Netherlands
|
Have you tried to set original resources paths as project paths?
, in the the wdl / starter with PATH you mean? I also have this problem before but i can't remember clear what is was reason. Did you sure that all your files is in the one folder? Check also in map properties did the main script is attached. , hmm I found 1 thing that sort of works, publishing from a map in Wed that has every model in it. Though it is a bit of a pain to add every model to it.
|
|
|
Re: how to bind all used models / textures to .wrs / resources ?
[Re: Reconnoiter]
#465378
04/21/17 20:21
04/21/17 20:21
|
Joined: Feb 2013
Posts: 122 Maysville, Ga
Evo
Member
|
Member
Joined: Feb 2013
Posts: 122
Maysville, Ga
|
I had these issues with many projects. Especially with "create" functions using external resources - entities, images, etc. I have an example of an Auto-Bind script that searches through all resource folders within a project and writes the file names of each file into a new bind script that can be included before publishing. Edit the script to target the folders that hold the resources that are external and this will make sure that all used assets will be written into bind statements. Can be easily edited to create a .WDL BIND script as well if wdl is what you need. Here is the code and example. Maybe this can help. https://evoeon.com/freeDownloads/autobind_example.zip
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|