Comments (1)
Sorry for the late reply!
Well, i think this version Importer (new version is still WIP) tryied find model, but if model not find, it tried load "ERROR" model placeholder, but if not find too, you got "for loop" bug x3 (for materials / textures too, i forgot make it optional)
For fix, open script "StudioMdlLoader.cs" and go down to "76" line & replace this:
if (!File.Exists(OpenPath + ".mdl"))
{
Debug.Log(String.Format("{0}: File not found", ModelName + ".mdl"));
return Load("error");
//return ModelObject.transform;
}
to this:
if (!File.Exists(OpenPath + ".mdl"))
{
Debug.Log(String.Format("{0}: File not found", ModelName + ".mdl"));
return ModelObject.transform;
}
Same thing need fix in "TextureLoader.cs" & "MaterialLoader.cs"
for "TextureLoader.cs", go down to "29" line & replace this:
if (string.IsNullOrEmpty(Path))
{
if (AltTexture != null)
return Load(AltTexture);
Debug.Log(String.Format("{0}: File not found", MainTexture + ".vtf"));
return Load("debug/debugempty", null);
//return null;
}
to this:
if (string.IsNullOrEmpty(Path))
{
if (AltTexture != null)
return Load(AltTexture);
Debug.Log(String.Format("{0}: File not found", MainTexture + ".vtf"));
return null;
}
and in "MaterialLoader.cs", go down to "52" line & replace this:
if (String.IsNullOrEmpty(Path))
{
Debug.Log(String.Format("{0}: File not found", MaterialName + ".vmt"));
return Load("debug/debugempty");
}
to this:
if (String.IsNullOrEmpty(Path))
{
Debug.Log(String.Format("{0}: File not found", MaterialName + ".vmt"));
return null;
}
i hope it fixed "for loop" bug for you :^)
If you have questions & want fast answers, DM me in discord: @DeadZoneGarry3474 or Steam or VK
from usource.
Related Issues (12)
- Support for static props with lightmaps?
- License
- How to use it.
- ObjectDisposedException: Cannot access a disposed object.
- Can't load bsp maps of counter strike 1.6 HOT 2
- Loader credits stacked ontop of settings and the Lightmapped Generic shader turns everything black HOT 1
- ObjectDisposedException on map loading HOT 1
- Import HOT 1
- Seams in walls HOT 1
- Import mdl's with map?
- how do i import .vtf .vmt or .bsp? into unity
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from usource.