Error!! MAV unknown

Blitz3D Forums/Blitz3D Programming/Error!! MAV unknown

Yue(Posted 2012) [#1]
someone gives me advice about solving this, is because on another machine skips the AVM, without apparent cause.



Last edited 2012


Yasha(Posted 2012) [#2]
1) Are you using any userlibs?

2) Are you using any code that "hacks" the 3D engine? (e.g. FastExtension, or unofficially peeking entity data)

3) Are you adding surfaces to a bone-animated mesh?

4) Is the error actually on that line, or are you experiencing the "slipping debug line" problem?

5) Have you tried adding Stop statements and/or DebugLog statements in the code above, to check that all your files have loaded, all your entities exist, and all custom data is valid?


Yue(Posted 2012) [#3]

;========================================================
; Proyecto       : Beta Centauro.
; Programador    : Yue Rexie.
; Sitio Web      : http://www.iris3d.tk. 
; Empresa        : Iris3D -Games Studios-© 2007-2012.
; Nombre Fichero : Inicio.bb.
;========================================================
; OBJETIVO FILE  : Logos (Distribuidor-Desarrollador)
;				 : y precarga menu principal.
;========================================================

Local Version$ = "Demo v.1.0"
AppTitle Version$

Local R%													; Resolución.

R% = Buscar_MG(800,600,16)									; Modo gráfico temporal.

; Includes Especiales I
;========================================================
Include "Includes2\Draw3D2.bb"								; Efectos 2D.
Include "Includes2\DrawSGG.bb"								; Efectos GUI.
Include "Includes2\DrawXTD.bb"
Include "PackMachine.bb"									; Contenedor Recursos.
Include "Includes2\scancodes.bb"							; Constantes Teclado.


; Includes Generales.
;========================================================
Include "Includes\Constantes.bb"							; Constantes.
Include "Includes\Variables.bb"								; Variables.
Include "Includes\Funciones.bb"								; Funciones.


Ente% = PLoadImage%("IMG","Logo1",Ruta$)						; Logo Distribuidor.
HandleImage	(Ente%,ImageWidth(Ente%)/2,ImageHeight(Ente%)/2); Centro de el Logo.


Crono% =	MilliSecs()										; Inicia Cronometro. 

; Buble Principal Logo Distribuidor.
;========================================================
While MilliSecs() < Crono% + 5000							; 5 Segundos.
	
	RenderWorld()											; Render Mundo.
	DrawImage (Ente%,Ancho_P%/2,Alto_P%/2)					; Dibujado del Logo.
	Flip()													; Se gira el Buffer.
	
	; Salto del Logo.
	If Salto%() = True And KeyDown(KEY_ESC%)=False 
		E_Tecla% = False
		Exit
	End If 
	
Wend 

Cls															
RenderWorld
Flip
FreeImage(Ente%)											; Liberamos Imagen.
; Includes Especiales II
;========================================================
Include "includes2\BlitzAL.bb"								; OpenAL (Sonido-Música)
;Include "Includes2\FastExt.bb"								; Efectos Especiales.
;Include "Includes2\ShadowsMultiple.bb"
;Include "Includes2\FastImage.bb"							; Efectos 2D.
;Include "Includes2\h_lotus.bb"								; Sistema de partculas.



; Entidades.
;========================================================
Luz%	= CreateLight()										; Luz%
Camara% = CreateCamera()									; Cámara.
Lente%  = CreateCube(Camara%)								; Lente de la Cámara.
FlipMesh (Lente%)											; Caras Inversas.
EntityColor Lente%,0,0,0									; Color del Lente.
CameraClsColor (Camara%,64,64,64)							; Color Fondo.
Ente% = PLoadMesh%("Models","Computador",Ruta$)				; Computador.
PositionEntity Ente%,0,-25,160								; Posición Computador.


DrawInit3D(Camara%):DebugLog("Init Draw2")					; Init Draw2
alInitialise():DebugLog("Init OpenAL")						; Init OpenAL

Origin3D (800,600)											; Centro de Dibujado.
IMG% = PLoadImage3D("IMG","Gauss.Yue",Ruta$)				; Imagen Draw.
Font%=FontRange3D(PLoadImage3D("IMG","Font",Ruta$,2,2,0,-2)); Fuente Draw.

FlushFace3D(IMG%)											; Efecto Especial.
CreateFlakes4D(500,500,1,0.05)


AnimRifled4D(IMG%,0,0,-20, 0.2, 5)
Cine(IMG%,Ancho_P%,50,1)									; Efecto Cine.


Sound_Intro%=PalCreateSource(Ruta$,"Sounds","Goteo")		; Sonido Intro.
alSourceSetLoop(Sound_Intro,True)
alSourcePlay(Sound_Intro,False)


FadeIn%(Lente%,Time2%)										; Se aclara el Lente.
Crono% = MilliSecs()										; Reiniciamos Cronometro.
Time%  = MilliSecs() - Periodo%								; Iniciamos Temporizador.										
; Buble Principal Logo Desarrollador.
;========================================================
While MilliSecs() < Crono% + 5000							; 5 Segundos.
	
	
	
	
	Repeat  :  elapsed = MilliSecs() - Time  :  Until elapsed
	ticks = elapsed / Periodo
	Tween# = Float(elapsed Mod Periodo) / Float(Periodo)
	For k=1 To ticks
		Time = Time + Periodo
		If k = ticks Then CaptureWorld
		
		TurnEntity Ente%, 0,2.2,0
		AnimRifled4D(IMG%,0,0,-20, 0.2, 5)
		UpdateWorld
	Next
	
	Text3D(Font%,0,-250,"www.Iris3D.tk -Games Studios-",1,0,Sin(MilliSecs()))
	Rect3D(IMG%,0,250,Ancho_P%,50,1)						; Banda Superior.						
	Rect3D(IMG%,0,-250,Ancho_P%,50,1)						; Banda Inferior.
	alUpdate()
	RenderWorld Tween#
	Clear3D%()
	Flip 
	
	; Salto Logo.
	If Salto%() = True And KeyDown(KEY_ESC%)=False 
		E_Tecla% =False
		Exit
	End If 
	
	
Wend
AnimRifled4D(IMG%,0,0,-20, 0.2, 5)
Cine%(IMG%,Ancho_P%,50,1)									; Efecto Cine.

FadeOut%(Lente%,Time2%)										; Se oscurce el Lente.
FreeEntity Ente%											; Liberamos Ente.
DrawFree3D()												; Cierre Draw2.				
alDestroy()													; Finaliza OpenAL
EndGraphics()												; Finalizamos Gráficos. 
End



Full Code.


RifRaf(Posted 2012) [#4]
The only time I have ever gotten a renderworld mav was when I loaded or created a mesh with way too many verts on a surface


xlsior(Posted 2012) [#5]
what kind of video card do you have on the PC that gets the MAV?


Yue(Posted 2012) [#6]
qué tipo de tarjeta de video tienes en el PC que tiene la MAV?

GF 5200 128 ram NVIDIA


Midimaster(Posted 2012) [#7]
some mav finding adwises:

1.
Where ist the Graphics3D() command?

2.
Did it already run a few days ago? What changes did you made since this day? Does is show some Flips and the crashes? Or is the crash before the first flip?

3.
Try to build a copy of the code and reduce the code to a mimimum: throw away all 3d-objects, so that RENDER() would find nothing to render. What happens? Try to switch off TWEEN#


Ross C(Posted 2012) [#8]
I would watch also for the numbers vertices in a surface. 66535 I think is the limit?


Yue(Posted 2012) [#9]
Well that is not what happens, I always throw the error at that point.
The mesh is 32,000 computer and the image of the first logo is a png loaded with the native commands of Blitz, now do not know why I throw that AVM, and I dread to think that this happens in another machine and can not do anything thereon.




Yasha(Posted 2012) [#10]
What happens if you replace each of your assets (one at a time) with placeholders?

Replace textures and images with simple CreateTexture-d check patterns, replace meshes with scaled cubes, replace sounds with generated beeps. If none of these things get rid of the error, then it's clearly not an asset problem...

...so then do the same thing with your libraries. Remove userlibs individually, then remove code libs (basically, comment out the lines where they are used, if you can do so without completely rewriting the program; if not, just comment out significant-looking lines one at a time.

Keep doing this, if you have to, until the program is just a Graphics3D and a While loop. Eventually, you'll remove something that stops the error happening. It's tedious, but it will work.


Yue(Posted 2012) [#11]
Hello, I want to revisit this issue .... the previous error I probocado at my house in my computer with Windows 98, but all is well, and internet rooms all goes well on computers with Windows XP, however today I found that on a computer with dual core loading logo of the computer gives a MAV, the truth is not how to fix this ...