Jump to content

boasfesta

Contributors
  • Posts

    79
  • Joined

  • Last visited

  • Days Won

    18

boasfesta last won the day on October 31

boasfesta had the most liked content!

1 Follower

About boasfesta

  • Birthday 06/05/1996

Contact Methods

  • Discord
    boasfesta#8721

Profile Information

  • Location
    Brazil

Profile Fields

  • Steam ID
    https://steamcommunity.com/id/boasfesta/

Recent Profile Visitors

1,781 profile views

boasfesta's Achievements

  1. Its just the red flash at the enemy when it got hit It works by custom code
  2. As it name suggest, here is a camera shaking system attached to animations for Intersect. Embedded Video Link How it works Animations now got a property called "Camera shake" in editor, which provides a duration in miliseconds for the shaking effect. This allows you make small shakes for light hits such like earthquakes for big ones. Videos got really big at AGD posts so, here is a example of a long duration shake and a smaller one. Requirements Intersect version v0.7+ Git installed Support For any problems or doubts with this system, add me on discord: boasfesta#8721. Soon in Intersect, wait for it
  3. Embedded Video Link Testing some features together: -Fluid movement -Fluid knockback -Flashing hit -AoE basic attack -Camera shake
  4. I don't know exactly but you could start by checking if there is any PlayerData migration pending. Start by making an upgrade. Also, check server logs searching for any evidence about database errors that can help us to figure out whats happening. At last, try to set breaking points at saving player lines to check if everything is working ok. And use SQLite manager to check if only specific tables are not being saved. We can get more info about the issue this way. Just a question, it works okay this whole time? Do you know where the problem start to happening? I mean because there is an deleted migration at your diffy and thats a little strange, dont know if EF got problems with that.
  5. Nice bro! Just care a little about the details mentioned by Weylon and that project can be great! For sure will help a lot of people. Its nice to see more Brazilians in the community. Be welcome!.
  6. {@“\command”, string.Join(Environment.NewLine, topList.Select(x => x.Name).ToList())} should work
  7. You can. But that method seems to be called at every event command, so even if you're not asking for a toplist, the system will check the database for a ordered list. Consider making a cache if that becomes laggy. Just do that string.Join in a topList.Select(x => x.Name).toList(), it should world.
  8. Try to select all projects in a row just by pressing SHIFT Right click and select "Clean", after that do "Rebuild". Lets see if it works.
  9. Function public void HandlePacket(Client client, ChatMsgPacket packet) in PacketHandler.cs at Intersect.Server its a good place. And yup, you can show the player name since the list only order players by exp, but his whole data is returned.
  10. Try CTRL + SHIFT + B and then restart VS If doesnt work, show us your Project Explorer at VS
  11. Chesire is right. Caching its best way to keep performance. Try to declare an public static List and update it every 60m for example. But if you're using MySQL and considering that people wont check the toplist everytime. You dont need to worry about caching up at all. Even a huge table wont be affected that much. So for a command /top, just code something like this: if (command = "/top") { var topList = OnlinePlayers.OrderByDescending(x => x.Value.Exp).ToList(); var topListString = string.Empty; foreach (var player in topList){ // concat topListString here } //SendChatMsg blablabla topliststring }
  12. You dont need to use raw SQL, let EntityFramework do that for you. An example for what are you trying to do is OnlinePlayers.OrderByDescending(p => p.Value.Exp).ToList(); So you got an ordered list of online players by Exp amount. Put that in communication between packets so clients can see it.
  13. 1. Migrations should work good just by editing Intersect.Server/Database/PlayerData/Players/Guild.cs. Remember to use Add-Migration -Context PlayerContext 2. LINQ would be a good choice for that, so if the line goes red, remember to add using to System.Linq. You can get an ordered list just by doing Guilds.OrderByDescending(g => g.Value.FamePoints).ToList(). Dont forget that "Guilds" is a public static var on Guild.cs so you need to access its visibility outside the class doing "Guild.Guilds".
  14. I mean, it only uses the Model class. Other projects i worked on, migrations need both Model and a Config class for each entity using classes like EntityTypeBuilder, IEntityTypeConfiguration, ModelBuilder and stuff. Can anyone explain me? There is anything related to NoFody? The other projects are in NET Core but the EF should be that easy too (i guess)
  15. I think that we wont have a tutorial of how to code at Intersect at all. xD Probably the developers are planning to update the developer guide on docs until 1.0 (i hope), thats the best i can expect to fit your need, since Intersect elements will be described so you can create features using you programming knowledge. But i dont expect an Intersect programming course. If developers does'nt update the dev docs, maybe we should do it. Quick tips about your features: - Look for the Swap items function at Player.cs in Intersect.Server, there you can create a logic to merge and crush items. - UI designs must be done at Layout Json files by default. That derives by the LoadJsonUI function, also it saves automatically any layout modification in-game. Try to use smaller layout references to make your own windows such like EntityBox.cs or FriendsWindow.cs
×
×
  • Create New...