Jump to content

1.6.4 OBJ Model Error Help - Incorrect format


SuperHB

Recommended Posts

Hey guys okay so I had a post asking for help with getting obj blocks to work with minecraft

 

now I'm stuck with this error

net.minecraftforge.client.model.ModelFormatException: Error parsing entry ('v -1.5 0 1.5', line 5) in file '/assets/dwadventures/OBJ/Tardis/Model11thDoctorTardis.obj' - Incorrect format

 

I was told to make a new post to see If anyone can help me! here is my code:

 

TardisTESR class:

public class TardisTESR extends TileEntitySpecialRenderer
{
    private IModelCustom EleventhTardis;
    private ResourceLocation tardisTexture;

    
    public TardisTESR(){
        EleventhTardis = AdvancedModelLoader.loadModel("/assets/dwadventures/OBJ/Tardis/Model11thDoctorTardis.obj");
        tardisTexture = new ResourceLocation("dwadventure:textures/tardisTexture.png");
    }

@Override
public void renderTileEntityAt(TileEntity tileentity, double d0, double d1, double d2, float f) 
{
	System.out.println("TardisTESR::renderTileEntityAt");

	Minecraft.getMinecraft().renderEngine.getTexture(tardisTexture);// dont create them here, create them in your constructor and save a reference as a member variable please

	EleventhTardis.renderAll();
}	
} 

 

TileEntityTardis class:

public class TileEntityTardis extends TileEntity 
{
public int tardis;

@Override
public void writeToNBT(NBTTagCompound par1)
{
	super.writeToNBT(par1);
	par1.setInteger("tardis", tardis);
}

@Override
public void readFromNBT(NBTTagCompound par1)
{
	super.readFromNBT(par1);
	this.tardis = par1.getInteger("tardis");
}
}

 

Block Class:

public class BlockEleventhTardis extends BlockContainer
{

    public BlockEleventhTardis(int i, Material m)
    {
        super(i, m);
        
        setHardness(3.5F);
        setStepSound(Block.soundStoneFootstep);
        setCreativeTab(DoctorWhoAdventure.tabDoctorWho);
        setResistance(1000.0F);
        setResistance(1000.0F);
        setHardness(1.5F);
        setLightOpacity(0);
        setLightValue(0.0f);
        setTickRandomly(false);
        setUnlocalizedName("dwadventure:EleventhTardis");
        
     // Harvest level for this block. par2 can be pickaxe, axe, or shovel, or
        // a different toolclass. par3 is the minimum level of item required to
        // break it:
        // 0=bare hands, 1=wood, 2=stone, 3=iron, 4=diamond
        //ItemSonicScrewdriver.setBlockHarvestLevel(this, "sonic", 0);
    }
    
    @SideOnly(Side.CLIENT)
    public void registerIcons(IconRegister par1IconRegister)

        {
            blockIcon = par1IconRegister.registerIcon("dwadventures:EleventhTARDIS");
        }   

    /**
     * Is this block (a) opaque and (b) a full 1m cube?  This determines whether or not to render the shared face of two
     * adjacent blocks and also whether the player can attach torches, redstone wire, etc to this block.
     */
    
    @Override
    public boolean isOpaqueCube()
    {
        return false;
    }

    /**
     * If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
     */
  
    public boolean renderAsNormalBlock()
    {
        return false;
    }
    	
    /**
     * Returns Returns true if the given side of this block type should be
     * rendered (if it's solid or not), if the adjacent block is at the given
     * coordinates. Args: blockAccess, x, y, z, side
     */
    @Override
    public boolean isBlockSolid(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5) {
            return true;
    }
    
    /**
     * This method is called on a block after all other blocks gets already
     * created. You can use it to reference and configure something on the block
     * that needs the others ones.
     */
    @Override
    protected void initializeBlock() 
    {
    	
    }
    
    /**
     * Called throughout the code as a replacement for block instanceof
     * BlockContainer Moving this to the Block base class allows for mods that
     * wish
     * to extend vinella blocks, and also want to have a tile entity on that
     * block, may.
     * 
     * Return true from this function to specify this block has a tile entity.
     * 
     * @param metadata
     *            Metadata of the current block
     * @return True if block has a tile entity, false otherwise
     */
    @Override
    public boolean hasTileEntity(int metadata) {
            return true;
    }
    
@Override
public TileEntity createNewTileEntity(World world) {
	return new TileEntityTardis();
}

/**@Override
public TileEntity createTileEntity(World world, int metadata)
{
	return new TileEntityTardis();
}*/
}

 

Main Class:

//Define Basic Info for Doctor Who Adventures
@Mod(modid = "doctorwhoadventures", name = "Doctor Who Adventures", version = "Alpha 1.0")

//Define Client & Server Side Requirements
@NetworkMod(clientSideRequired = true, serverSideRequired = false)

public class DoctorWhoAdventure 
{
//Define Instance
@Instance("doctorwhoadventures")
public static DoctorWhoAdventure Instance;

//Define Server
@SidedProxy(clientSide = "net.DoctorWhoAdventures.superhb.mod.ClientProxy", serverSide = "net.DoctorWhoAdventures.superhb.mod.ServerProxy")
public static ServerProxy proxy;

//Define Creative Tab
public static CreativeTabs tabDoctorWho = new CreativeDoctorWho(CreativeTabs.getNextID(), "tabDoctorWho");

//Define Tool Material
public static EnumToolMaterial toolSonic = EnumHelper.addToolMaterial("SONIC", 20, 15000, 7, 8, 100);

//Define Armor Material 
//public static EnumArmorMaterial EleventhDoctor = EnumHelper.addArmorMaterial("doctor", 33, new int[] {1, 2, 4, 1}, 30);

//Define T.A.R.D.I.S
public static Block eleventhTardis;

//Define Sonic
public static Item sonicScrewdriver;

@EventHandler
public void modInit(FMLInitializationEvent event)
{
	MinecraftForge.EVENT_BUS.register(new LivingDropEvent());
}

@EventHandler
public void PreInit(FMLPreInitializationEvent Event)
{
	//Capes
        DevCapesUtil.getInstance().addFileUrl("https://dl.dropboxusercontent.com/u/83349414/DoctorWho/DoctorWhoCapes/CustomCapes.txt");
        //Doctor Who Adventures Block
        eleventhTardis = new BlockEleventhTardis(3530, Material.wood);
        sonicScrewdriver = new ItemSonic(6000, this.toolSonic);
        
        //Register Crafting, or Block/Item
        GameRegistry.registerTileEntity(TileEntityTardis.class, "eleventhTardis");
        GameRegistry.registerBlock(eleventhTardis, "eleventhTardis");
        
        //Set Item/Block/Food/Tool/Armor Name
        LanguageRegistry.addName(eleventhTardis, "11th Doctor's Tardis");
}

@EventHandler
  public void postInit(FMLPostInitializationEvent event) 
  {
        ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTardis.class, new TardisTESR());  // you are missing this bit
  }
}

 

Here is the Dev Console Error:

2014-01-27 18:24:43 [iNFO] [sTDOUT] ---- Minecraft Crash Report ----
2014-01-27 18:24:43 [iNFO] [sTDOUT] // Sorry 
2014-01-27 18:24:43 [iNFO] [sTDOUT] 
2014-01-27 18:24:43 [iNFO] [sTDOUT] Time: 1/27/14 6:24 PM
2014-01-27 18:24:43 [iNFO] [sTDOUT] Description: Initializing game
2014-01-27 18:24:43 [iNFO] [sTDOUT] 
2014-01-27 18:24:43 [iNFO] [sTDOUT] net.minecraftforge.client.model.ModelFormatException: Error parsing entry ('v -1.5 0 1.5', line 5) in file '/assets/dwadventures/OBJ/Tardis/Model11thDoctorTardis.obj' - Incorrect format
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.minecraftforge.client.model.obj.WavefrontObject.parseVertex(WavefrontObject.java:314)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.minecraftforge.client.model.obj.WavefrontObject.loadObjModel(WavefrontObject.java:91)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.minecraftforge.client.model.obj.WavefrontObject.<init>(WavefrontObject.java:55)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.minecraftforge.client.model.obj.ObjModelLoader.loadInstance(ObjModelLoader.java:28)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.minecraftforge.client.model.AdvancedModelLoader.loadModel(AdvancedModelLoader.java:70)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.DoctorWhoAdventures.superhb.mod.TESR.TardisTESR.<init>(TardisTESR.java:20)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.DoctorWhoAdventures.superhb.mod.DoctorWhoAdventure.postInit(DoctorWhoAdventure.java:88)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.Loader.initializeMods(Loader.java:704)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:249)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.startGame(Minecraft.java:509)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.run(Minecraft.java:808)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.minecraft.client.main.Main.main(Main.java:93)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 
2014-01-27 18:24:43 [iNFO] [sTDOUT] 
2014-01-27 18:24:43 [iNFO] [sTDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
2014-01-27 18:24:43 [iNFO] [sTDOUT] ---------------------------------------------------------------------------------------
2014-01-27 18:24:43 [iNFO] [sTDOUT] 
2014-01-27 18:24:43 [iNFO] [sTDOUT] -- Head --
2014-01-27 18:24:43 [iNFO] [sTDOUT] Stacktrace:
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.minecraftforge.client.model.obj.WavefrontObject.parseVertex(WavefrontObject.java:314)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.minecraftforge.client.model.obj.WavefrontObject.loadObjModel(WavefrontObject.java:91)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.minecraftforge.client.model.obj.WavefrontObject.<init>(WavefrontObject.java:55)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.minecraftforge.client.model.obj.ObjModelLoader.loadInstance(ObjModelLoader.java:28)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.minecraftforge.client.model.AdvancedModelLoader.loadModel(AdvancedModelLoader.java:70)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.DoctorWhoAdventures.superhb.mod.TESR.TardisTESR.<init>(TardisTESR.java:20)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.DoctorWhoAdventures.superhb.mod.DoctorWhoAdventure.postInit(DoctorWhoAdventure.java:88)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.Loader.initializeMods(Loader.java:704)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:249)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.startGame(Minecraft.java:509)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 
2014-01-27 18:24:43 [iNFO] [sTDOUT] -- Initialization --
2014-01-27 18:24:43 [iNFO] [sTDOUT] Details:
2014-01-27 18:24:43 [iNFO] [sTDOUT] Stacktrace:
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.run(Minecraft.java:808)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.minecraft.client.main.Main.main(Main.java:93)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 
2014-01-27 18:24:43 [iNFO] [sTDOUT] -- System Details --
2014-01-27 18:24:43 [iNFO] [sTDOUT] Details:
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	Minecraft Version: 1.6.4
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	Operating System: Windows 8 (amd64) version 6.2
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	Java Version: 1.7.0_25, Oracle Corporation
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	Memory: 796507032 bytes (759 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	Suspicious classes: FML and Forge are installed
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	FML: MCP v8.11 FML v6.4.49.965 Minecraft Forge 9.11.1.965 4 mods loaded, 4 mods active
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	FML{6.4.49.965} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	Forge{9.11.1.965} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	doctorwhoadventures{Alpha 1.0} [Doctor Who Adventures] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Errored
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	Launched Version: 1.6
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	LWJGL: 2.9.0
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	OpenGL: Intel(R) HD Graphics 4000 GL version 4.0.0 - Build 10.18.10.3345, Intel
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	Is Modded: Definitely; Client brand changed to 'fml,forge'
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	Type: Client (map_client.txt)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	Resource Pack: Default
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	Current Language: English (US)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	Profiler Position: N/A (disabled)
2014-01-27 18:24:43 [iNFO] [sTDOUT] 	Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
2014-01-27 18:24:43 [iNFO] [sTDOUT] #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Kenneth\Desktop\Stuff\Modding Stuff\Doctor Who 1.6.4\forge\mcp\jars\.\crash-reports\crash-2014-01-27_18.24.43-client.txt

Link to comment
Share on other sites

Hi

 

Looking at WavefrontObject, it uses the following regular expression to find vertices in the wavefront file

 

private static Pattern vertexPattern = Pattern.compile("(v( (\\-){0,1}\\d+\\.\\d+){3,4} *\\n)|(v( (\\-){0,1}\\d+\\.\\d+){3,4} *$)");

http://www.tutorialspoint.com/java/java_regular_expressions.htm

 

So it expects to find a vertex in the form

v followed by three or four numbers made up of: an optional -, followed by digits, followed by ., followed by more digits.

 

Yours clearly doesn't match this pattern

v -1.5 0 1.5

i.e. it needs to be

v -1.5 0.0 1.5

 

I can think of a few ways around it -

(1) if your model doesn't have too many vertices you could find-replace with text editor

(2) your cinema 4D might have an option to output in fixed decimal place format

(3) you could move your model in cinema 4D ever so slightly (say - by 0.001) so that there are no integers in the output file.

 

-TGG

 

 

Link to comment
Share on other sites

Hi

 

Looking at WavefrontObject, it uses the following regular expression to find vertices in the wavefront file

 

private static Pattern vertexPattern = Pattern.compile("(v( (\\-){0,1}\\d+\\.\\d+){3,4} *\\n)|(v( (\\-){0,1}\\d+\\.\\d+){3,4} *$)");

http://www.tutorialspoint.com/java/java_regular_expressions.htm

 

So it expects to find a vertex in the form

v followed by three or four numbers made up of: an optional -, followed by digits, followed by ., followed by more digits.

 

Yours clearly doesn't match this pattern

v -1.5 0 1.5

i.e. it needs to be

v -1.5 0.0 1.5

 

I can think of a few ways around it -

(1) if your model doesn't have too many vertices you could find-replace with text editor

(2) your cinema 4D might have an option to output in fixed decimal place format

(3) you could move your model in cinema 4D ever so slightly (say - by 0.001) so that there are no integers in the output file.

 

-TGG

 

for Option 1: Impossible I have like 90000 lines of vertices

for Option 2: How do I do that?

for Option 3: Would that change the position of the block?

Link to comment
Share on other sites

for Option 3: Would that change the position of the block?

 

I

Just

What?

 

for Option 1: Impossible I have like 90000 lines of vertices

 

Dude, might want to simplify that.  90,000 verts is the kind of vert numbers you find on a fully rigged biped model for a modern shooter.  The hell are you doing?

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

for Option 3: Would that change the position of the block?

 

I

Just

What?

 

for Option 1: Impossible I have like 90000 lines of vertices

 

Dude, might want to simplify that.  90,000 verts is the kind of vert numbers you find on a fully rigged biped model for a modern shooter.  The hell are you doing?

 

I am making my Minecraft version of the TARDIS from Doctor Who

Link to comment
Share on other sites

You still don't need 90,000 verts.  Minecraft is inherently cubic.  You should be able to make a reasonable TARDIS with 128 to 256 verts.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.