Jump to content

Recommended Posts

Posted

It is clear that all these messages are annoying:

[Error]: File not found: conf/import/packet_conf.txt
[Error]: Configuration file (conf/import/inter_conf.txt) not found.
[Error]: Configuration file (conf/import/login_conf.txt) not found.

So I thought in two ways to avoid it:

- Doesn't display the import files reading if they're missing (which they are by default ->import-tmpl);

- Rename import-tmpl to import and let the emulator read it even if the files have no content.

Please discuss if you feel like so.

Posted

I would like to let it like it is now, since ppl need to manually rename them in order to get them working thus knowing what they do and how they work, making it silent will just make them useless if the user doesn't know what they do also keeping them as template will not override user changes when they do svn update

  • Upvote 2
Posted

The Linux build process (both make and CMake) already create the /import/ folder from the template folder.

It's just the Windows build process that we need to fix.

Can Visual Studio be told to copy files/folders in the compile process?

If not, then maybe a batch file to do this?

  • Upvote 1
Posted

Could do something like this:

Index: map-server_sql.vcxproj
===================================================================
--- map-server_sql.vcxproj	(revision 16962)
+++ map-server_sql.vcxproj	(working copy)
@@ -271,4 +271,15 @@
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
  <ImportGroup Label="ExtensionTargets">
  </ImportGroup>
+  <Target Name="AfterBuild">
+    <Copy SourceFiles="..\conf\import-tmpl\battle_conf.txt" DestinationFolder="..\conf\import\" ContinueOnError="true" />
+    <Copy SourceFiles="..\conf\import-tmpl\char_conf.txt" DestinationFolder="..\conf\import\" ContinueOnError="true" />
+    <Copy SourceFiles="..\conf\import-tmpl\inter_conf.txt" DestinationFolder="..\conf\import\" ContinueOnError="true" />
+    <Copy SourceFiles="..\conf\import-tmpl\log_conf.txt" DestinationFolder="..\conf\import\" ContinueOnError="true" />	
+    <Copy SourceFiles="..\conf\import-tmpl\login_conf.txt" DestinationFolder="..\conf\import\" ContinueOnError="true" />
+    <Copy SourceFiles="..\conf\import-tmpl\map_conf.txt" DestinationFolder="..\conf\import\" ContinueOnError="true" />
+    <Copy SourceFiles="..\conf\import-tmpl\msg_conf.txt" DestinationFolder="..\conf\import\" ContinueOnError="true" />
+    <Copy SourceFiles="..\conf\import-tmpl\packet_conf.txt" DestinationFolder="..\conf\import\" ContinueOnError="true" />
+    <Copy SourceFiles="..\conf\import-tmpl\script_conf.txt" DestinationFolder="..\conf\import\" ContinueOnError="true" />
+  </Target>
</Project>
\ No newline at end of file

  • Upvote 3
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...