Jump to content

diegofkda

Retired Staff
  • Posts

    1,532
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by diegofkda

  1. Yo comencé a los 11 con el lenguaje de GTA, pero al ver lo enrevesado que era, no avancé mucho (mis conocimientos matemáticos de aquella época me limitaron igualmente) me moví a Lua cuando comencé a jugar MTA. Hace dos años aproximadamente, mi fanatismo por Lua me llevó a aprender C++ y bueno, hoy en día tengo muchos proyectos en progreso al respecto ?. Eso si, no he sabido de ninguna plataforma que te permita personalizar un motor de un juego de forma tan cómoda como MTA.
  2. Quizas es un recurso el cual contenga un script que hace desaparecer el chat una vez que una persona se conecta (que raramente a ti no te lo hace desaparecer). La solución a eso es bastante sencilla que es parando recursos de a uno y luego reconectar para ver si se solucionó el tema.
  3. diegofkda

    hola

    Movido a Scripting.
  4. Meh, I doubt that. Not my intention to offend anyone, but in my opinion, we will still see lazy scripters that use only basic MTA functions and GUI on most MTA servers, making their servers similar to SA-MP ones, but that for unknown reasons receive a lot of players. Server scripters must learn the incredible MTA potential, then we will be able to imagine a self-made game looking for servers. In basic terms, the whole MTA community must change the way they imagine a good server. By the way, custom animations were going to be released on 1.1, but something happened and a lot of hard work has to be done. If I'm not wrong, the new animations broke embedded ones, I'm not sure. I agree it would be awesome if someone does the job, but I see it difficult to be honest.
  5. I remember it. It was going to be a really really good project but if I'm not wrong an issue when processing high-polygon col models stopped you. Well, it looks great. Finally, someone using MTA potential near its peak. I'm sick of servers still using MTA embedded GUI. Don't get me wrong, it's not bad and those servers aren't bad, but MTA has much more to show.
  6. En ese caso no estoy seguro de que se pueda cambiar el modelo, solo la textura por métodos muy simples, excepto si recreas el modelo del arma mediante shaders y para eso... Uff No sé muy bien lo que quieres pero deja ver si entendí: ¿Quieres que el modelo se cambie y que todos vean el modelo cambiado (osea que para todos les cambie el arma) o que el jugador cambie el arma solamente para el, y que esta sea vista por todas? Si es este último, por temas de sincronización quizás prefieras cambiar únicamente la textura del arma mediante shaders como lo propuso Tomas, ya que es lo más práctico que hay hasta lo que sé. Hace mucho no me dedico al scripting, pero no creo que halla un método simple de hacerlo. Quizás reemplazando el ID que indicaste por un DFF vacio o con transparencia para luego recrear el arma con un objeto con la posición actualizada respecto a la de las manos del jugador... Lo cual sería mucho mas complejo.
  7. No soy un gran conocedor de métodos de almacenamiento de datos como estos, ya que se complica todo en el momento donde el servidor se cae. De todas formas, podrías proveer mas datos. ¿Que métodos de guardado estas utilizando actualmente? La mayoría recomienda MySQL o cosas por el estilo, puesto que todos han tenido ciertas limitaciones utilizando el clásico SQLite predeterminado de MTA desde setAccountData.
  8. Espero que sepas que las funciones que reemplazan modelos RenderWare en MTA son bastante limitadas técnicamente hablando, y encontrarás bugs como estos. También que por razones muy obvias, cada vez que reemplaces el modelo del arma, el cliente verá a todos los jugadores remotos con el arma que ha sido reemplazada. A lo mejor se me escapa un detalle en el código, por ende podrías revisar bien el código y esperar la opinión de otra persona. Después, ve si al cambiar de arma puedes ver el modelo ya reemplazado. Si sigue sin verse, podrías experimentar un poco y confirmar el error desactivando el recurso que crea objetos de armas en la espalda del personaje, reiniciar MTA y entrar al servidor solo con el recurso que reemplazaría las armas, y algo simple como el recurso 'Freeroam'.
  9. Prueba hacer lo indicado en el siguiente tema (en inglés): MTA CRASHING? Read here first! Coloca en este tema los resultados.
  10. It wouldn't be impossible and even it would be a bit easy if you got the enough Lua experience in my opinion, considering that there's already a NPC resource made by CrystalNV (hope I am not misspelling his name) and considering also that MTA would offer a much better synchronization system for the traffic, and because of that, it would be an authentic CPU eater. It's not worth though, personally, I always hated when players try to remake other games inside MTA. GTA:SA has its own 'touch', and that touch must be the reason I still prefer SA than V.
  11. O simplemente ajustar el valor llamado 'Collision Damage Multipler' de las propiedades del vehículo. Para esto, se ocupa setVehicleHandling() (no ajustará el daño físico, claro).
  12. En lo personal, agradezco a cada persona que colabora con la comunidad del habla hispana, no como otras personas de por ahí que no saben hacer nada más que hablar y criticar (no hablo ni de Alexs ni de Solid por cierto). Como dijo Alexs_Steel, ya hay un tema promoviendo la wiki de MTA en español, y el tema tuyo en este caso es la calidad de la traducción. Esta es la wiki hispana de MTA oficial y no podemos tomarlas de forma tan simple, por lo tanto queremos tener la mejor gramática y comprensión hacia los desarrolladores de cada servidor, y así mismo incluso promover el 'scripting', la creatividad y parte de la programación hacia nuestros usuarios, en la mejor forma posible. Con todo eso, me refiero que no debemos llegar y colocar cosas como 'sta function returnea 1 vehicle si se spawneo y si no aparece emm contacta con alguien y eso po', o llegar y ocupar Google Traductor. Lo apropiado sería 'Esta función retorna (o devuelve como lo han hecho algunos) un vehículo si es que este se creó. De lo contrario, false debido a que los argumentos dados son erróneos/inválidos' (solo por darte un ejemplo, puede ser incluso mejor). Puedes guiarte por otros temas hechos por otros, y si quieres ahorrarte críticas pregúntale a otro si cree que es adecuada la redacción del texto antes de actualizar la pagina.
  13. *An huge facepalm*. Meh, VirtualBox was a very good OS emulator (though we all know its 3D functionality, which you get after installing a bunch of slow drivers, is crap), but gonna see how this one works. Well, really, thank you two for the support. If something goes wrong I'm gonna post my problems later.
  14. Should I install that in my physical machine? The virtual operating system just retrieves an error with the MSI installer when installing system packages.
  15. Recently, I installed MTA:SA into a virtual machine and well, it runs well but once the game has to load objects, it just freezes. So, for example, the loading screen shows and everything, but once the game has to show 3D objects, it just freezes (happens in single-player and MTA). The main reason of installing it into a virtual machine is that I want to run multiple MTA:SA clients to test my scripts without messing with others. By the way, already ran MTADiag and the problem hasn't been fixed. Here's my dxdiag report: ------------------ System Information ------------------ Time of this report: 3/19/2014, 20:14:36 Machine name: DIEGO Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp.080413-2111) Language: Spanish (Regional Setting: Spanish) System Manufacturer: innotek GmbH System Model: VirtualBox BIOS: Default System BIOS Processor: AMD Athlon(tm) II X2 220 Processor, MMX, 3DNow, ~2.8GHz Memory: 1024MB RAM Page File: 99MB used, 2363MB available Windows Dir: C:\WINDOWS DirectX Version: DirectX 10.0 (4.10.0000.5515) DX Setup Parameters: Not found DxDiag Version: 5.03.2600.5512 32bit Unicode ------------ DxDiag Notes ------------ DirectX Files Tab: Several files (d3d8.dll, d3d9.dll) are old versions, which could cause problems. You should reinstall DirectX to get the latest version. Display Tab 1: No problems found. Sound Tab 1: No problems found. Music Tab: No problems found. Input Tab: No problems found. Network Tab: No problems found. -------------------- DirectX Debug Levels -------------------- Direct3D: 0/4 (n/a) DirectDraw: 0/4 (retail) DirectInput: 0/5 (n/a) DirectMusic: 0/5 (n/a) DirectPlay: 0/9 (retail) DirectSound: 0/5 (retail) DirectShow: 0/6 (retail) --------------- Display Devices --------------- Card name: VirtualBox Graphics Adapter Manufacturer: Oracle Corporation Chip type: VBOX DAC type: Integrated RAMDAC Device Key: Enum\PCI\VEN_80EE&DEV_BEEF&SUBSYS_00000000&REV_00 Display Memory: 256.0 MB Current Mode: 1024 x 768 (32 bit) (60Hz) Monitor: Monitor predeterminado Monitor Max Res: Driver Name: VBoxDisp.dll Driver Version: 4.03.0006.0000 (English) DDI Version: 9 (or higher) Driver Attributes: Final Retail Driver Date/Size: 12/18/2013 11:32:46, 77072 bytes WHQL Logo'd: n/a WHQL Date Stamp: n/a VDD: no disponible Mini VDD: VBoxVideo.sys Mini VDD Date: 12/18/2013 11:32:48, 117520 bytes Device Identifier: {AEB2CDD4-6E41-43EA-941C-8361CC760781} Vendor ID: 0x10DE Device ID: 0x0041 SubSys ID: 0x00000000 Revision ID: 0x0000 Revision ID: 0x0000 Video Accel: Deinterlace Caps: n/a Registry: OK DDraw Status: Enabled D3D Status: Enabled AGP Status: Not Available DDraw Test Result: Not run D3D7 Test Result: Not run D3D8 Test Result: Not run D3D9 Test Result: Not run ------------- Sound Devices ------------- Description: Audio integrado de Intel(r) Default Sound Playback: Yes Default Voice Playback: Yes Hardware ID: PCI\VEN_8086&DEV_2415&SUBSYS_00008086&REV_01 Manufacturer ID: 1 Product ID: 100 Type: WDM Driver Name: ac97intc.sys Driver Version: 5.10.0000.3523 (English) Driver Attributes: Final Retail WHQL Logo'd: n/a Date and Size: 8/17/2001 15:20:04, 96256 bytes Other Files: Driver Provider: Microsoft HW Accel Level: Full Cap Flags: 0x0 Min/Max Sample Rate: 0, 0 Static/Strm HW Mix Bufs: 0, 0 Static/Strm HW 3D Bufs: 0, 0 HW Memory: 0 Voice Management: No EAX(tm) 2.0 Listen/Src: No, No I3DL2(tm) Listen/Src: No, No Sensaura(tm) ZoomFX(tm): No Registry: OK Sound Test Result: Not run --------------------- Sound Capture Devices --------------------- Description: Audio integrado de Intel(r) Default Sound Capture: Yes Default Voice Capture: Yes Driver Name: ac97intc.sys Driver Version: 5.10.0000.3523 (English) Driver Attributes: Final Retail Date and Size: 8/17/2001 15:20:04, 96256 bytes Cap Flags: 0x0 Format Flags: 0x0 ----------- DirectMusic ----------- DLS Path: C:\WINDOWS\SYSTEM32\drivers\GM.DLS DLS Version: 1.00.0016.0002 Acceleration: n/a Ports: Microsoft Synthesizer, Software (Not Kernel Mode), Output, DLS, Internal, Default Port Audio integrado de Intel(r), Software (Kernel Mode), Output, DLS, Internal Mapeador Microsoft MIDI [Emulado], Hardware (Not Kernel Mode), Output, No DLS, Internal Sint. SW de tabla de ondas GS [Emulado], Hardware (Not Kernel Mode), Output, No DLS, Internal Registry: OK Test Result: Not run ------------------- DirectInput Devices ------------------- Device Name: Mouse Attached: 1 Controller ID: n/a Vendor/Product ID: n/a FF Driver: n/a Device Name: Teclado Attached: 1 Controller ID: n/a Vendor/Product ID: n/a FF Driver: n/a Poll w/ Interrupt: No Registry: OK ----------- USB Devices ----------- + Concentrador raíz USB | Vendor/Product ID: 0x106B, 0x003F | Matching Device ID: usb\root_hub | Service: usbhub | Driver: usbhub.sys, 4/14/2008 08:00:00, 59520 bytes | Driver: usbd.sys, 4/14/2008 08:00:00, 4736 bytes | +-+ Dispositivo de interfaz humana USB | | Vendor/Product ID: 0x80EE, 0x0021 | | Location: USB Tablet | | Matching Device ID: usb\class_03 | | Service: HidUsb | | Driver: hidusb.sys, 4/14/2008 08:00:00, 10368 bytes | | Driver: hidclass.sys, 4/14/2008 08:00:00, 36864 bytes | | Driver: hidparse.sys, 4/14/2008 08:00:00, 24960 bytes | | Driver: hid.dll, 4/14/2008 08:00:00, 20992 bytes | | | +-+ Mouse compatible con HID | | | Vendor/Product ID: 0x80EE, 0x0021 | | | Matching Device ID: hid_device_system_mouse | | | Service: mouhid | | | Driver: mouclass.sys, 4/14/2008 08:00:00, 23552 bytes | | | Driver: mouhid.sys, 4/14/2008 08:00:00, 12416 bytes ---------------- Gameport Devices ---------------- ------------ PS/2 Devices ------------ + Teclado estándar de 101/102 teclas o Microsoft Natural PS/2 Keyboard | Matching Device ID: *pnp0303 | Service: i8042prt | Driver: i8042prt.sys, 4/14/2008 08:00:00, 53504 bytes | Driver: kbdclass.sys, 4/14/2008 08:00:00, 25088 bytes | + Controlador de teclado de Terminal Server | Matching Device ID: root\rdp_kbd | Upper Filters: kbdclass | Service: TermDD | Driver: termdd.sys, 4/14/2008 06:49:44, 40840 bytes | Driver: kbdclass.sys, 4/14/2008 08:00:00, 25088 bytes | + Mouse PS/2 de Microsoft | Matching Device ID: *pnp0f03 | Service: i8042prt | Driver: i8042prt.sys, 4/14/2008 08:00:00, 53504 bytes | Driver: mouclass.sys, 4/14/2008 08:00:00, 23552 bytes | + Controlador de mouse de Terminal Server | Matching Device ID: root\rdp_mou | Upper Filters: mouclass | Service: TermDD | Driver: termdd.sys, 4/14/2008 06:49:44, 40840 bytes | Driver: mouclass.sys, 4/14/2008 08:00:00, 23552 bytes ---------------------------- DirectPlay Service Providers ---------------------------- DirectPlay8 Modem Service Provider - Registry: OK, File: dpnet.dll (5.03.2600.5512) DirectPlay8 Serial Service Provider - Registry: OK, File: dpnet.dll (5.03.2600.5512) DirectPlay8 IPX Service Provider - Registry: OK, File: dpnet.dll (5.03.2600.5512) DirectPlay8 TCP/IP Service Provider - Registry: OK, File: dpnet.dll (5.03.2600.5512) Internet TCP/IP Connection For DirectPlay - Registry: OK, File: dpwsockx.dll (5.03.2600.5512) IPX Connection For DirectPlay - Registry: OK, File: dpwsockx.dll (5.03.2600.5512) Modem Connection For DirectPlay - Registry: OK, File: dpmodemx.dll (5.03.2600.5512) Serial Connection For DirectPlay - Registry: OK, File: dpmodemx.dll (5.03.2600.5512) DirectPlay Voice Wizard Tests: Full Duplex: Not run, Half Duplex: Not run, Mic: Not run DirectPlay Test Result: Not run Registry: OK ------------------- DirectPlay Adapters ------------------- DirectPlay8 TCP/IP Service Provider: Conexión de área local - IPv4 - ----------------------- DirectPlay Voice Codecs ----------------------- Voxware VR12 1,4 Kbits/seg Voxware SC06 6,4 Kbits/seg Voxware SC03 3,2 Kbits/seg MS-PCM 64 Kbits/seg MS-ADPCM 32.8 Kbits/seg Microsoft GSM 6.10 13 Kbits/seg TrueSpeech(TM) 8.6 Kbits/seg ------------------------- DirectPlay Lobbyable Apps ------------------------- ------------------------ Disk & DVD/CD-ROM Drives ------------------------ Drive: C:
  16. Lo de verificar (if else then blablabla) es muy simple. Básicamente, se ocupa isElementOnScreen solamente para verificar si el elemento, en este caso, el ped creado, está o no en la pantalla. Lo que retorna en este caso esa función (isElementOnScreen) es un bool, false si es que no esta en la pantalla, y true si es que si lo esta, entonces la CPU se ahorra tener que hacer trabajos de más (recordemos también que aquí se ocupa onClientRender, un evento que usualmente es llamado, debido a que se llama cuando el juego renderiza una imagen. Si tienes 45 FPS por ejemplo, el evento se llamará 45 veces por segundo). Por ejemplo, podemos tener una variable: mi_variable = "uno" otra_variable = "dos" --Creamos dos valores que notoriamente no son equivalentes if mi_variable == otra_variable then --verificamos si son equivalentes else --y esto sería para cuando lo indicado arriba NO es equivalente end Tambien podemos verificar si un valor es válido (cabe destacar que un valor existe o es válido cuando este no es 'false' ni 'nil') o no. Un valor sería 'inválido' cuando por ejemplo, haces lo siguiente: vehicle = createVehicle ( 1000, 0, 0, 0 ) En este caso, la variable 'vehicle' sería 'false' debido a que el vehículo no fue creado con éxito, debido a que el modelo del vehículo indicado no existe. ¿Como verificamos? Muy simple: if vehicle then print ( "El vehículo ha sido creado satisfactoriamente." ) --'print' es una función predeterminada en Lua. No se exactamente si tenga algún efecto en MTA, la puedes reemplazar por 'outputChatBox' de todas formas. else print ( "El vehículo no pudo ser creado" ) end Esa es la gran historia de 'if', 'else', y las comparaciones (al menos básicamente). Te dejo una página que te podría ser también útil (en inglés eso si): Manual de Lua para principiantes: comparaciones.
  17. Efectivamente, debido al recurso que creo que descargaste (que, terriblemente, modifica las texturas de las partículas) es que no ves lo que te sugieren apropiadamente. Lo mas cercano para hacer estas bengalas, puede ser crear un misil y colorear sus partículas con shaders, si no ocupar alguna de las funciones FX. Hay muchas que realmente pueden ser utiles.
  18. Funciona de todas formas. Tanto el cliente como el servidor necesitan la mayoría de los requisitos para arrancar de forma apropiada.
  19. I guess everything is not really needed. There are hands up animations in MTA that even let you handsup while in vehicle, but however, custom animations is a feature that, as we all know, is missing into MTA. With the objects ID thing, there are a lot of unused IDs and even, you can use the same object model for a lot of custom models you'd need, using shaders. However, it is missing also into the MTA world. The chatbox one, if you aren't happy with the current MTA chatbox, you can always create your own one really, so I don't see a valid reason for this to be honest. The first two that I mentioned, we all agree that they're features that should really make MTA even better, but there's actually stuff that has more priority. Got two links that you may want to check: Custom animations support bugmantis issue "Adding the opportunity to add new IDs"
×
×
  • Create New...