Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - NewK

#1
Community Plugins / Re: Javascript plugin
Aug 20, 2024, 01:44 PM
This plugin is built on top of the java plugin so what I wrote in the other topic applies to this aswell. But I dont recommend using this plugin anymore as I'm no longer working on it, if you still want to use it, the documentation website has all the steps needed to install it
#2
Quote from: MEGAMIND on Aug 19, 2024, 05:40 AMthis is my first time installing this plugin and i think i have ibstalled jdk 8 or maybe 11 as i work with some android platfforms..

C:\Users\HP>java -version
java version "17.0.8" 2023-07-18 LTS
Java(TM) SE Runtime Environment (build 17.0.8+9-LTS-211)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.8+9-LTS-211, mixed mode, sharing)

kindly let me know where to add the jdk in my server or move the server to some relative path
You need to configure it in the javaplugin.properties file.
See an example here: https://github.com/newk5/vcmp-maven/blob/master/javaplugin.properties

Also make sure you remove any comments that are inside that file (if you have any)
#3
Quote from: MEGAMIND on Aug 18, 2024, 07:22 AM
Quote from: NewK on Aug 18, 2024, 04:11 AMIt already works with 0.4.7.1, there's no changes to the plugin api
actually i recived this Plugin error >> VcmpPluginInit in 'plugins/libjavapluginrel64.dll' returned 0.
Failed to load plugin: libjavapluginrel64
If you're having this error with 0.4.7.1 you're also having this error with 0.4.7.0. Something in your javaplugin.properties is most likely wrong
#4
It already works with 0.4.7.1, there's no changes to the plugin api
#5
Version 1.2 is up which contains the new APIs for the 0.4.7 release

make sure to update your pom.xml to version 1.2

<dependency>
  <groupId>com.gitlab.newk5</groupId>
  <artifactId>vcmp-integration</artifactId>
  <version>1.2</version>
</dependency>


Plugin binaries available here
#6
Only issue I notice is for me its marking all posts/replies (even old ones) as new/unread.
#8
Update your announcer plugin, the old version caused that "Failed to store response " error. Download the latest version here: https://forum.vc-mp.org/?topic=8700.msg51666#msg51666
#9
The integration .jar and tools.jar are now deprecated.

I created a new project called vcmp-integration.jar. This project includes both tools.jar and integration.jar in one single jar. So from now on you only need to use 1 jar file. The repository is located on gitlab https://gitlab.com/newk5/vcmp-integration

The artifact was also uploaded to gitlab's maven server so you can now use it automatically with maven/gradle without needing to do any installs on your local maven. To use it in maven add the following to your pom.xml file:

Add the gitlab maven repository:

<repositories>
  <repository>
    <id>gitlab-maven</id>
    <url>https://gitlab.com/api/v4/projects/32257821/packages/maven</url>
  </repository>
</repositories>


Add the dependency:
<dependency>
  <groupId>com.gitlab.newk5</groupId>
  <artifactId>vcmp-integration</artifactId>
  <version>1.1</version>
</dependency>
That's all.

If you need to access the .jar file directly you can download it from here: https://gitlab.com/newk5/vcmp-integration/-/packages Click on the version you want,  then scroll down and click the .jar file.

This .jar is fully backwards compatible and is just a drop-in replacement for tools.jar and integration.jar, you won't need to change anything in your code.

#10
After 2 years, more than 100 commits and a few community contributions, version 1.0.0 has been released. The code for custom components has been rewritten and now supports the creation of DecUI components dynamically. This means it supports the creation of new DecUI components without needing to add or modify any code inside DecUI so if you want to create DecUI components you dont need to know anything about DecUI internals, you just need to create a class that extends the parent DecUIComponent, register that class with DecUI and that's all. If you're familiar with React, you'll feel right at home since it's very similar.

You can see the tutorial on how to create DecUI components here

You can see the changelog here
#11
Servers / Re: MK | Capture the Flag
Sep 22, 2021, 05:03 PM


The CTF6 public beta is now live, come and join the fun and give the new player abilities a try!

What's new?

Player abilities/skills

 Abilities are small perks/effects that you can apply either to yourself or others for a few seconds. There's 3 types of abilities:
  • SELF -  Abilities that affect the player only such as the immunity abilities, silencer and so on
  • INFANTRY -  Abilities that allow a player to place bombs, mines, gears etc., and anything else self-serving around your personal weaponry
  • TEAM - Any ability that serves your team such as the healing the regeneration of health and ammo


You can see a list of abilities here

You can only have 3 skills equipped at the same time, but you can choose which ones to equip at any point.

New hotkeys:
  • F3 --> Opens skill store ( you can buy and equip skills in this window)
  • Q --> Uses skill equipped in slot1
  • 2 --> Uses skill equipped in slot2
  • E --> Uses skill equipped in slot3
To change default hotkeys:
  • /key1 <keyID> (changes slot1 hotkey)
  • /key2 <keyID> (changes slot2 hotkey)
  • /key3 <keyID> (changes slot3 hotkey)
To get <keyID>:
  • Run  /recordkey and press the key you want to use
  • You will then see the <keyID> on the chat, which you can use with the /key1,2,3 commands
You can watch a tutorial on how to do this  here
Currency:

CTF now has currency, AKA, Points. You can spend these points on player skills/abilities.
Each one costs 100 points. You can earn points, the exact same way you earn points for your team during a round:
  • 1 kill = 1 point
  • 1 Flag = 15 points
  • 5 player killing spree = +1 point for each kill +5 points for the last kill (10 points total)
  • (NEW) 1 kill while holding the flag = +2 points
  • (NEW) Ending someone's spree = +5 points

Points cannot be transfered nor abilitites can be sold

Ranks

Players now have ranks. All players will start with Rank 0. For each 100 points you earn, you will rank up, so everytime you rank up, that means you can buy a new ability.

As a way to kickstart your progress, 50 points have been given to all registered players, you only need 50 more points and you'll be able to buy your first ability!
#12
Which Visual C++ Redist did you install?

Install this one in specific:
Quote from: AdTec_224 on Dec 25, 2020, 12:17 AMlibpng16.dll is included with the client update (as seen here) so either something/someone deleted it or it may require the Visual Studio redistributable to be installed, located here.
#13
Try restarting the VCMP browser and then see if you can join. If not, please show us the content of your rel006 folder.
#14
Updated dead links to AdTec's mirror. The links are now working again.
#15
Nice work umar. Nice to see more people taking advantage of buildmode to create stuff like this.

There's a 2 things about DecUI internals you should probably know about which will help you improve your editor.

1) The code you're using at the moment will work for all GUIElements but will not work for DecUI components (Grid, Datatable, Circle,  Combobox, etc...). This is because when you do "typeof e" for a DecUI component, it will return "instance" because DecUI components are classes. However, all DecUI components are wrapped in a GUICanvas with the exact same ID as the component. So you just have to check if typeof returns "instance" and if it does, you build the code as if it's a GUICanvas.

2) When printing/copying code to the clipboard, you should avoid additional lookups and use a local variable instead. Avoid doing this:

UI.Label("newLabel").Position3D  = ...
UI.Label("newLabel").Rotation3D = ...
UI.Label("newLabel").Size3D   = ...

and do this instead:
local newLabel = UI.Label("newLabel");
newLabel.Position3D  = ...
newLabel.Rotation3D =  ...
newLabel.Size3D   = ...

This will be faster and is a good optimization to keep in mind when working with DecUI in general, because every time you do UI<Type>(ID) to fetch something, a tree traversal will be made to find the ID you passed, and if you repeat UI.Label("newLabel") 3 times, you will be making 3 unecessary searches. It's better to just do the search once, save it in a variable ( local always, never global). And then just re-use the same variable. This is an optimization which seems small if you dont  have alot of GUIElements created, but once you start having alot of GUIElements this will make a big difference.