Jump to content

Alina

Inactive Member
  • Posts

    174
  • Joined

  • Last visited

  • Days Won

    13
  • Feedback

    0%

Everything posted by Alina

  1. If you need help, feel free to ask further questions
  2. you can change it to NULL or simply use: if(!item) like it's in the source
  3. You can work with aliases [Hidden Content] And then let a firewall, ipfw or pf do the forwarding. For example set up a jail, assign a local ip adress to it and then use pf to forward the traffic from one of your ip addresses to this exact local ip address. pf can do NAT, so it'd be no problem to set it up. For this you may look for NAT. For example here's something for PF [Hidden Content] It's a OpenBSD manual but it should work here too
  4. This is clearly unsecure code! What happens if the result of ch->GetInventoryItem(bCell) == nullptr? If that is the case, then you can't execute it like a pointer! Between those two lines you'd add: if(nullptr == item) return; Note that this also already exists in another form: if(!item) return; But it's just too late. You'd have those lines right after you initialize the item variable. Also.. Why are you using malloc when we're in c++? You'd change: char * yeni = (char*) malloc(1+ strlen(item_id) + strlen(engel)); to: char* yeni = new char(1 + strlen(item_id) + strlen(engel)); Also don't forget to run free() (c) or delete[] (c++) on dynamically allocated variables. In your case: free(yeni); Ooor when you use the c++ method: delete[] yeni; But you'd also forget the char chaos if we have strings here. std::string yeni = str(item_id); yeni.copy(engel); That'll also do and you won't have to deal with free() or delete[]. So. What should you do? I suggest you to first move the check if your item pointer is a nullptr above your code so your program doesn't crash. Then you'd fix up the mess with your dynamic allocated memory with your char*. Otherwise you'll soon have memory corruption if you don't free the memory or use strings. After that, please check if the error still persists
  5. Easiest way to do that: So called FreeBSD Jails. They're like a virtual environment where you can run your services at. Oh, and you need at least two ips pointing to your server. With PF you can forward everything to your jails, so if you don't have 2 ips you can also forward ports to one of your servers
  6. Try it with changing: when 247.party_kill with d.getf("level") == 3 begin to: when 247.party_kill with pc.in_dungeon() and d.getf("level") == 3 begin That should solve the mysterie. Your error appears when someone kills mob 247 without being in a dungeon. The server still insists on fetching the dungeonflag via d.getf even if the player isn't in a dungeon at all You'd add it everytime you're not dealing with a servertimer or non-dungeon related trigger. This way you make sure that the player really is in a dungeon before you use those functions. Still I don't think that this error is related to your problem. Anyway, try it out and tell us if it works. The syserr shouldn't appear anymore
  7. Please post a complete syserr of your client! Next tell us the line from item_proto client and serverside regarding your auto potions. Also tell us please which revision you use.
  8. Look at the file names. Do you notice a strange thing they all have in common? Right. There are some characters that clearly are strange. Maybe that's why the pack mechanism won't work. You'd try removing them from the pack archive since I don't think the client uses them
  9. I think it's more related to too much attack speed. The gamefile also synchronizes the attack sequence so player can't let other players fly like they want. The error may be clientside and that's why the server is pulling him back. I guess there's a big mismatch on the attack speed.
  10. Can you tell me how to reproduce it? I'll try and fix it then. There'd be a way to resolve that issue.
  11. I don't think this is the right quest. You know what this means? It tells you that you're trying to use 'PetSystem' which is a nil value. You can reproduce this by doing the following local a = AnythingThatIsNil() Also if you're trying to do arithmetics on that you'll face the second error (comparing nil with number): AnythingThatIsNil = nil local a = 10 + AnythingThatIsNil So PetSystem is in your case nil. What you have to do is search for PetSystem in your quests and look where it'd be defined. There you can fix it! Maybe you also did rewrite horse.summon() in your questlib.lua (so check this file too). I dunno where you'd have it. But the error is clear and resolvable
  12. If you tell me what you're up to I'd like to give you my voice. I don't have the best voice and neither do I have a really good quality. But if it's enough, I'd help of course. German and English are fine, I can try French too but I'm not really good at it Edit: Oh and the title is misleading^^ You'd better rename it to "[Search]Womans voice" otherwise people may think you wanna date someone here
  13. I'll help for free if you allow me to. I need access to it and the source code so I can try to find out what's happening. Or tell me what branch you're using and how I can reproduce the bug.
  14. Alina

    Save dogs

    ​With this in mind you really won't change anything. Doing nothing is like staying at the same place over and over. People need to be confronted with bad things. Of course. Eating dogs is, well, strange for us but if they want to do it who are we to blame them? We're eating some other stuff that they find strange and will never touch. That's just culture. But what I don't like is making festivals out of it. Let's be honest. Letting thousands of people eat dogs clearly indicates that you'll have to find a cheap way to give them what they want. And what's the cheapest way? Not caring about the animals. That's how things go. Of course I hate it and I am against it. That's why I also dislike the idea of making festival out of eat - for everything except vegetarian things. I'm not vegetarian, but eating animals is something you shouldn't do out of fun. And if people start to do it out of fun you'd be allowed to hold a mirror against them and show them what they're actually doing and beg them to stop. That's all the petition is going to do. They can't force them but they can tell them what we're all thinking about it and maybe one or two will start seeing things from different eyes. breathing and eating animals for a festival can't be compared though. You need breath to survive but you can stop eating animals out of fun without having to suffer or - in this case - to suffocate. These both are completely different things. Just my two cents about this TL;DR: culture is something different than doing things out of necessarity. You can't stop them from eating dogs (and by all means, you shouldn't, we also eat things they may find weird) but you can show them how bad it is to do it out of fun. Holding such a festival means you have to get everything as cheap as possible, that's why the government counts in the torture of animals.
  15. Never touch a running system. Simple as that Why compiling for linux if freebsd is working stable and fast? It works without any problems, why should someone do all the work porting it when it's already working fine
  16. Open char_skill.cpp and search for line 2598. Post this line and the last 2-3 lines before and after that. The error tells you "No such file or directory" so there could be a file handler trying to open a non-existent file
  17. Check the result of tcpdump if you can log in via ssh. There are many different attack methods. Maby he only uses a software vulnerability. With that in mind, he won't need to DDoS you or eat all your traffic (yummy) to bring down your server. You'd consider reconfiguring your server. If you still need help, pm me if you want and I can try to detect what exactly happens as long as you can establish a connection via ssh to your server.
  18. Hello! It's nice to have a pro like you here
  19. Hello Ken! You'd start playing mmorpg games They're fun (some of them..^^)
  20. Hello there! So, you aren't Chuck Norris? Why am I still here? *joke* Congratulations to 5 years of developing!
  21. Look at char_battle.cpp in the function Dead(). Sometimes people edit this function and kill the core through this. Check for nullpointer, most likely the error is located there
  22. Why do you need ccache to do the job? You can also use ccache to reduce compilation time even further but you won't have to because clang is already damn fast, not only in compilation time but also in binary speed. As mentioned before, in some cases gcc is faster, in some other clang is. It really doesn't matter that much. And I want to stick to the system as much as possible, especially for this project it's the easiest way. Here is the first screen from the machine! I'm using zsh to extend the capabilities of the shell
  23. You'd give it a try I do agree that gcc is faster, I never tried the intel compiler (especially since I use AMD cpu and I guess Intel's compiler is optimized for Intel only) but I'm very statisfied with clang. Those small speed boosts you may saw are nothing big, in normal cases they won't even be noticed. Also clang is faster in some other cases than gcc, so it's just based on the task they're doing
  24. ​Because clang is making huge progress. It's compilation times are by far faster than gcc. Additionally FreeBSD dropped gcc in favour of clang. So clang is the compiler used for the base system. If I want to make a vpc and sources that should work everywhere even with newer systems then it's best to stick with the native compiler
  25. Greetings my minions! I'm currently developing something new and (hopefully) big. It's a vpc specially designed to compile the sources. There are some features I include in this. But! I won't release anything until the community has spoken. I want to discuss this topic with you. Do you think it's good? What do you expect from it? Would you use it? And last but not least: If you have any ideas or features for this vpc, tell me! The idea behind that is simple: This vpc will come with the basic clang compiler. I'll only release it for freebsd 10.1+ (updates will follow of course ^^). I've recompiled the kernel and configured the machine for one big task: Compiling the source. And for this, I'll edit every source branch you want me to edit. Starting from the famous vanilla core to mainline branches and even your own branches. These sources will be adapted to clang and c++14 standard. I'll also release them. There's just some easy steps for you to do: Just set up the vpc (it's really easy I promise!), upload the source package I provide (it's easy I promise!), extract it and you're ready to compile it. Without worrying about external stuff or libraries, just upload it and you're ready to go! As mentioned before I'll release newer versions from time to time. What does this mean for you? Just download your sources, install the new updated machine, upload it and continue where you've left off! Easy is that! My plans for this are simple: I want to create an easy standard for everyone. The kernel is kept with maximum compatibility for every pc so everyone should be able to run the vpc and compile his sources. There will be no need to watch out for libraries or anything else as everything will be kept in a special directory where you can access it. And! Because of the new way the gamefiles will be compiled (outsourcing every library) you won't have to upload tons of mb every time you recompile your game. It'll be smooth and easy work for you. What will the machine have: 1. Easy set up (download, import the virtual machine, adapt it's speed if you want and you're ready to go!) 2. Complete documentation (from installing, configuring, setting up network and everything else so you can look up if anything doesn't work as you want it) 3. External libraries. The gamefile will be by far smaller than before and you won't have to upload a big file everytime you recompile it 4. Easy to maintain. Ports like portupgrade are installed by default so you can update the libraries and stuff easy and fast 5. Completely configured for one purpose: Compiling. It's trimmed to optimum speed so you will be even faster when compiling your gamefile 6. Using clang as the new native compiler of FreeBSD. This way you're sticking to the things the system already has. You won't have to worry about extensions (Iike in vanilla source with g++410 and stuff) because you can use the internal compiler (or if you know what you're doing, install your own and do the extension stuff. Everything is open for you!) 7. By far prettier console so you can see where you are, what you're doing and what's happening! So as mentioned before, tell me please your thoughts about it! If the community disagrees with it, I'll drop the development. It depends on your wishes and ideals, because the vpc should be for you! Edit: Project sadly cancelled. I managed to finish my work but unfortunately I can't seem to upload it. Size is about 10gb and it'd take me roughly about 100 hours to upload it. Damn, hours work for nothing. But I'll do something else out of it!
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.