Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 6,509
» Latest member: crazyosman365
» Forum threads: 2,233
» Forum posts: 12,033

Full Statistics

Online Users
There are currently 472 online users.
» 0 Member(s) | 470 Guest(s)
Google, Bing

Latest Threads
Command does not work in-...
Forum: Pawn Scripting
Last Post: PANZEHIR_
2024-11-23, 06:36 PM
» Replies: 0
» Views: 41
White Screen
Forum: Support
Last Post: Phat202146_real
2024-11-21, 02:50 PM
» Replies: 0
» Views: 36
I get error 021 using y_h...
Forum: Pawn Scripting
Last Post: daniscript18
2024-11-18, 11:34 PM
» Replies: 0
» Views: 55
Il reste des français sur...
Forum: French/Fran?ais
Last Post: tysanio
2024-11-18, 05:39 AM
» Replies: 2
» Views: 465
Object creation issues
Forum: Programming
Last Post: K1271
2024-11-15, 11:51 PM
» Replies: 0
» Views: 56
Is the SAMP Hosting the s...
Forum: General Discussions
Last Post: OperaGX
2024-11-14, 09:33 PM
» Replies: 0
» Views: 73
Run time error 19: "File ...
Forum: Pawn Scripting
Last Post: Rexey
2024-11-14, 03:50 AM
» Replies: 0
» Views: 64
How to Compile Your Gamem...
Forum: Tutorials
Last Post: thelante
2024-11-13, 08:50 AM
» Replies: 3
» Views: 467
Modeller wanted
Forum: Development Updates
Last Post: acc.gangbeni
2024-11-11, 05:10 PM
» Replies: 9
» Views: 16,502
SA:MP forum offline
Forum: Portuguese/Portugu?s
Last Post: weslley_script
2024-11-09, 05:27 PM
» Replies: 7
» Views: 9,926

 
Brick [Work In Progress] Scene Editor
Posted by: Sasino97 - 2019-06-21, 11:10 AM - Forum: Releases - Replies (5)

SceneEditor

By

[Image: Sasinosoft.png]

Sasinosoft Scene Editor For SA-MP Map Editor for SA-MP San Andreas Multiplayer edit map objects by Sasino97 Sasino

Introduction

This tool is an upcoming replacement for Map Construction?by Jernej L. which aims to provide a new range of functionality,?some of which?weren't available in SA-MP at the time of the editor. It's completely open source (as required by this forum's rules)?and anyone is welcomed to?contribute. I especially need your help with regards to TXD textures, since I am having hard time to make them?work correctly.



What Has Already Been Done



Important note:?At this stage, the software app is?not?usable for the purpose (you cannot make SA-MP?maps with it yet).



To date (21/06/2019), the following things have been done:


  • A main window with a 3D Viewport and a menu

  • The camera mouse/keyboard/touch gestures with Helix Toolkit

  • A settings window in which you can configure the path to GTA SA

  • An IMG Archive reader (translated from an existent C code)

  • Parser for RenderWare .DFF models (certain models are not being loaded correctly)

  • Parser for RenderWare .TXD texture dictionaries (some types of decompression are missing)

  • Model classes for IDE files


I want to say thanks to JernejL, kcow, steve-m and the other authors of free/open source software found on the GTA Forums regarding the RW formats.



Planned Features



1. Not Only Objects!

One of the main differences between this Scene Editor and JernejL's is that, while the latter only allowed to create objects and vehicles (and to remove buildings), this one will support much more:


  • Objects

  • Building Removal

  • Vehicles

  • Pickups

  • Actors / FCNPCs

  • Checkpoints and Race Checkpoints (streamer)

  • 3D Text Labels

  • Custom Entities (e.g. gates, elevators, spawn points, teleports)


2. Import / Export

The app will export all the scene data to a .JSON file. This JSON file can be loaded again into the app to resume the previous work, but the point is that this JSON file can also be loaded by the?open.mp/SA-MP scripts using a library?that contains a function which parses that kind of file and creates the objects accordingly. The library?will use dynamic objects/actors/pickups/text3ds if Incognito's streamer is included. The checkpoints/race checkpoints will be created only if the Streamer is included. The editor will allow you to apply IDs to any object/vehicle/... in order to retreive them later in the code; an example are gates, which often need to be opened and closed.



An example of how it could be used, in the case of a Pawn game mode:



#include <streamer>

#include <Scene>

#include <zcmd>



new Scene: islandScene;

new objGate1;



public OnGameModeInit()

{

? ? // Note:?Scenes/Island.json is inside scriptfiles

? ? islandScene = Scene.Load("Scenes/Island.json"); // this single line creates all the objects, pickups, vehicles, actors (etc...) found in this file, and stores references to those who have an ID

? ? objGate1 = Scene.FindById(islandScene, "Gate1");

? ? return 1;

}



CMD:opengate1(playerid, params[])

{

? ? MoveDynamicObject(objGate1, 1242.47, 4214.55, 16.5, 1.0);

? ? return 1;

}



A C# API is also planned for SampSharp and open.mp.



The app will also be able to import a normal .pwn file and interpret all the CreateObject(/CreateDynamicObject/CreateActor/CreateVehicle, etc...) found in it, and save them into the JSON format. This is for backwards compatibility with JernejL's map editor. There will also be an option to export a plain .pwn file, but in that case the advantages of code/resource separation will be lost.



3. Scene Editor

The main scene editor will be pretty much the same as JernejL's. It will feature an object browser window in which you will be able to search through all the objects using their name, id, and maybe category and description.

It will probably support multiple tabs each of which contains a viewport, enabling you to quickly switch between two or more views.

You will move around the scene in almost the same way as with JernejL's editor, but since the Helix 3D Viewport also handles touch gestures, it will be a lot easier to use this editor with a tablet (a Windows tablet, of course).

The right click (or long touch) on an object will open the context menu that offers the ability to delete the object, edit the materials or add attachments (in case of vehicles/FCNPCs). Of course keyboard shortcuts will be also provided.



4. Material Editor

You will be able to use the material editor to change the materials and material text of any object. This editor will also feature a texture browser in which you will be able to search through all textures.?

The material editor can be used both while editing a scene to make a specific object in the scene have a specific set of materials, or alone, allowing you to export only the fragment of JSON data needed for that particular material configuration.



5. Attached Offsets Editor

The editor will feature an editor for Player/Vehicle attachments of objects. If used together with the Scene Editor (for example by right-clicking a vehicle or an FCNPC), then the changes will reflect in the scene, but in a similar way to the Material Editor, the data can be exported separately.



6. DL?Support

It will allow the scene designers?of open.mp and?SA-MP DL?to use their custom models in the Scene Editor. They will simply have to add one or more model folders in the settings, and the app will load them.



7. Properties

You will be able to attach properties to scene objects. For example, you could add a?weight?property to doors, so that you can access that value from code and make the door open after the player presses a certain button a number of times.



8. Add-ons / plugins

There will be support for add-ons that add custom entities. For example, one could create a house system filterscript, and then create an add-on for the Scene Editor, so that you can add houses in it.



9. Team

This will be an exciting feature: two or more people can work together on the same scene at the same time in order to enhance productivity. The file on which the team works will only be accessible to the host of the team session; the clients can only work on the scene without the possibility of saving the file on their machines (unless they hack the program of course).



10. Themes

The application will support default white and dark themes as well as custom themes.



11. Additional Tools

A few tools that could be useful which don't directly relate to map editing:


  • Animation Browser

  • Sound Browser


Technical Information


  • The programming language is?C#

  • The app platform is Windows Presentation Foundation a.k.a. WPF?(requires .NET Framework >=?4.6.1)

  • 3D rendering is done by WPF 3D (which in turn uses Direct3D)

  • Uses the Helix Toolkit (?link?) for some advanced 3D controls, like their enhanced 3D Viewport

  • Uses a managed wrapper for Libsquish for texture decompression (DXT)

  • The Version Control System is?Mercurial?is now Git


Contribute To Development

Everyone is welcomed to contribute to the development of this awesome scene editor! Just send me an email (address at the bottom of my signature) and I will give you write permissions.



Repository

Since Bitbucket removed Mercurial support, I finally decided to move to Git and GitHub.

I still sincerely hate?Git, and I still believe?Mercurial is 100 times better,?but I like how the GitHub platform works, so I decided to switch.

This is the new repository:

https://github.com/SaSiNO97/scene-editor



Building

Visual Studio?and the?.NET desktop development?workload?are required to build the project. I am using Visual Studio 2019.

During the first build, an internet connection is required to download the necessary NuGet packages.



License

Mozilla Public License


Star Streamer Plugin by Incognito
Posted by: Sasino97 - 2019-06-21, 06:14 AM - Forum: Plugins - Replies (2)

Since Incognito does not use these forums and since his Streamer plugin is very important to the community, I am re-posting his thread here.

Quote:Streamer Plugin

This plugin streams objects, pickups, checkpoints, race checkpoints, map icons, and 3D text labels at user-defined server ticks. Basic area detection is also included. Because it is written entirely in C, much of the overhead from PAWN is avoided. This streamer, as a result, is quite a bit faster than any other implementation currently available in PAWN.

Changelog

GitHub Commit History

Refer to the CHANGES file the binary package for the full changelog.

Documentation

GitHub Wiki

Additional information can be found by searching this thread.

Download

GitHub Releases Page

The Windows version requires the?Microsoft Visual C 2015 Redistributable Package.


  CeMondeLeVotre [RP] 0.3DL (server.cmlv-rp.com:2600) | https://discord.gg/ry5urSD
Posted by: Pauul - 2019-06-20, 07:01 PM - Forum: French/Fran?ais - Replies (5)

[Image: 161216012829232314.png]

Nous sommes un serveur fran?ais avec plus de 10 ans d'exp?riences (cr?ation en 2008), avec plus de 30.000 comptes existants !
Si tu as des questions, tu peux nous contacter directement via le forum : https://forum.cmlv-rp.com ou via discord:?https://discord.gg/ry5urSD

Cette section est utile si tu as des questions ou que tu souhaites pouvoir ?changer avec d'autres joueurs.
Je veillerai ? vous r?pondre dans les plus brefs d?lais, mais vous pouvez directement me contacter via discord: Pauul#7261?

Enfin, retrouves toutes les informations en t'abonnant ? nos pages facebook, youtube et tweeter:?

https://www.facebook.com/CeMondeLeVotre/
https://www.youtube.com/user/CMLVofficiel
https://twitter.com/CeMondeLeVotre

Derni?re Mise ? Jour:?Update 10.6.4

http://gtasamp.meilleurforum.com/t368483...-4#6958850

Pour les nouveaut?s, voici les topics en question :

http://forum.cmlv-rp.com/t368482-nouveau-gameplay
http://forum.cmlv-rp.com/t368480-bouclie...-la-police
http://forum.cmlv-rp.com/t368481-nouvell...discussion
http://forum.cmlv-rp.com/t368385-panneaux-publicitaires
http://forum.cmlv-rp.com/t368391-les-objets
http://forum.cmlv-rp.com/t350050-prison-de-blueberry


  Playing mp3 from serverfiles
Posted by: SkeeZy - 2019-06-19, 04:10 PM - Forum: Questions and Suggestions - Replies (6)

Hey.



I would really love the ability to Play sounds/mp3-files without using a webserver for it.

I dont know if its just me. But i think it would be way better to be able to play music from local files.


  IsPlayerInRangeOfPoint
Posted by: Salesman - 2019-06-18, 02:43 PM - Forum: Pawn Scripting - Replies (1)

Okay so I did this command and it should be able to loop from all of the Hangars to find the one where the player is close to, but it always returns the else message.

Code:
cmd:hangar(playerid){

for(new i = 0; i<MAX_HANGARS; i){

if(IsPlayerInRangeOfPoint(playerid, 4.0, hInfo[i][hPosX], hInfo[i][hPosY], hInfo[i][hPosZ])){

if(hangartimer[playerid] == 1) return ErrorMessage(playerid, "Nije proslo 30 minuta od uzimanja proslog oruzija.");

if(hInfo[i][hDeagle]蒉[i][hSawedOff]蒉[i][hM4]蒉[i][hMats] == 0) return ErrorMessage(playerid, "Hangar je prazan.");

if(hInfo[i][hStatus] == 0) return ErrorMessage(playerid, "Hangar nije u funkciji."), printf("hstatus: %d", hInfo[i][hStatus]);

new?

str[100];

format(str, sizeof str, "\tPacket name\tPacket quantity\nDesert Eagle \t%d\nSawed Off \t%d\nM4 \t%d\nMaterials \t%d", hInfo[i][hDeagle], hInfo[i][hSawedOff], hInfo[i][hM4], hInfo[i][hMats]);

SPD(playerid, DIALOG_HANGAR, DIALOG_STYLE_TABLIST_HEADERS, ""SERVER"Hangar", str, "Odaberi", "Odustani");

phangar[playerid] = i;

}

else return ErrorMessage(playerid, "Ne nalazite se u blizini nekog hangara.");

}

return true;

}


Bug error 075: input line too long (after substitutions)
Posted by: PiLLoW - 2019-06-18, 02:16 PM - Forum: Pawn Scripting - Replies (2)

I need help im new to scripting anyone can help me





Quote:C:\Users\Desktop\prp-master\gamemodes\newScript.pwn(27445) : error 075: input line too long (after substitutions)



Code:
mysql_format(m_Handle, query, sizeof(query), "INSERT INTO weapon_attachments(playerdbid, weaponid, boneid, PosX, PosY, PosZ, RotX, RotY, RotZ, Hidden) VALUES(%i, %i, %i, %f, %f, %f, %f, %f, %f, %i) ON DUPLICATE KEY UPDATE boneid = %i, PosX = %f, PosY = %f, PosZ = %f, RotX = %f, RotY = %f, RotZ = %f, Hidden = %i",





Quote:C:\Users\Desktop\prp-master\gamemodes\newScript.pwn(27542) : error 075: input line too long (after substitutions)



Code:
PlayerData[playerid][pSQLID], id, WeaponDisplay[playerid][id][weaponBone], -0.055998, 0.188999, 0.053998, 0.000000, 44.500007, 0.000000, WeaponDisplay[playerid][id][weaponHidden], WeaponDisplay[playerid][id][weaponBone], WeaponDisplay[playerid][id][weaponPos][0], WeaponDisplay[playerid][id][weaponPos][1], WeaponDisplay[playerid][id][weaponPos][2], WeaponDisplay[playerid][id][weaponRot][0], WeaponDisplay[playerid][id][weaponRot][1], WeaponDisplay[playerid][id][weaponRot][2], WeaponDisplay[playerid][id][weaponHidden]);


  Remove automatic forum post translation
Posted by: Sasino97 - 2019-06-17, 01:11 PM - Forum: Questions and Suggestions - No Replies

I think the automatic translation of posts on this forum is just a bad idea.

Here's a good example of the issue:



[Image: image.png]


  Blur ?
Posted by: NexoR - 2019-06-16, 12:29 PM - Forum: Questions and Suggestions - Replies (2)

Hi, will there be support for blurring textdraws?


  Built-in Map Editor
Posted by: Spredde - 2019-06-16, 11:18 AM - Forum: Questions and Suggestions - Replies (3)

I don't think this will be high on your priority list, but even though you've decided on high compatibility with SA-MP I think it'd still be lovely if you could add in built-in map editor that would get updated whenever the map-changing feature comes out.


  Pawn compiler for Android
Posted by: Luciano - 2019-06-15, 03:04 PM - Forum: Programming - Replies (5)

I'm running Prime OS on my main PC, which is an Android-based operating system for desktop computers.

Is there a way to make the Pawn compiler work with any existing Android app?